if match is not None:
return None
- if self.verbose >= 3:
+ if self.verbose >= 4:
self.logger.debug( "Inspecting timeperiod line:\n\t{0!r}".format( line ) )
re_time = r'(?:(?:(?:[01][0-9]|2[0-3]):[0-5][0-9])|24:00)'
# first search for a simple weekday
regex = r'^' + re_weekdays + r'\s+' + re_timeranges + r'$'
- if self.verbose >= 4:
+ if self.verbose >= 5:
self.logger.debug( "Timeperiod Regex {0!r}.\n\t{1!r}".format( regex, line ) )
match = re.search( regex, line )
if match is not None:
- if self.verbose >= 3:
+ if self.verbose >= 4:
liste = []
for k in match.groups():
liste.append(k)
regex = r'^' + re_isodate + r'(?:\s*-\s*' + re_isodate + r')?(?:\s*/\s*(\d+))?\s+' + re_timeranges + r'$'
# 1 2 3 4 5 6 7 8 ...
- if self.verbose >= 4:
+ if self.verbose >= 5:
self.logger.debug( "Timeperiod Regex {0!r}.\n\t{1!r}".format( regex, line ) )
match = re.search( regex, line )
if match is not None:
- if self.verbose >= 3:
+ if self.verbose >= 4:
liste = []
for k in match.groups():
liste.append(k)
# 4 5 6
regex += r'(?:\s*/\s*(\d+))?\s+' + re_timeranges + r'$'
# 7 8...
- if self.verbose >= 4:
+ if self.verbose >= 5:
self.logger.debug( "Timeperiod Regex {0!r}.\n\t{1!r}".format( regex, line ) )
match = re.search( regex, line )
if match is not None:
- if self.verbose >= 3:
+ if self.verbose >= 4:
liste = []
for k in match.groups():
liste.append(k)
# 1 2 3
regex += r'(?:\s*/\s*(\d+))?\s+' + re_timeranges + r'$'
# 4 5...
- if self.verbose >= 4:
+ if self.verbose >= 5:
self.logger.debug( "Timeperiod Regex {0!r}.\n\t{1!r}".format( regex, line ) )
match = re.search( regex, line )
if match is not None:
- if self.verbose >= 3:
+ if self.verbose >= 4:
liste = []
for k in match.groups():
liste.append(k)
# 1 2 3 4
regex += r'(?:\s*/\s*(\d+))?\s+' + re_timeranges + r'$'
# 5 6 ...
- if self.verbose >= 4:
+ if self.verbose >= 5:
self.logger.debug( "Timeperiod Regex {0!r}.\n\t{1!r}".format( regex, line ) )
match = re.search( regex, line )
if match is not None:
- if self.verbose >= 3:
+ if self.verbose >= 4:
liste = []
for k in match.groups():
liste.append(k)