Browse Source

- Removed print.

git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@720 a942ae1a-1317-0410-a47c-b1dcaea8d605
_tent/ipv6_via_aInfo
Cyril Jaquier 16 years ago
parent
commit
024a77a679
  1. 3
      server/datetemplate.py

3
server/datetemplate.py

@ -132,7 +132,7 @@ class DateStrptime(DateTemplate):
conv = self.convertLocale(dateMatch.group()) conv = self.convertLocale(dateMatch.group())
try: try:
date = list(time.strptime(conv, self.getPattern())) date = list(time.strptime(conv, self.getPattern()))
except ValueError: except ValueError, e:
# Try to add the current year to the pattern. Should fix # Try to add the current year to the pattern. Should fix
# the "Feb 29" issue. # the "Feb 29" issue.
conv += " %s" % MyTime.gmtime()[0] conv += " %s" % MyTime.gmtime()[0]
@ -187,6 +187,5 @@ class DateISO8601(DateTemplate):
if dateMatch: if dateMatch:
# Parses the date. # Parses the date.
value = dateMatch.group() value = dateMatch.group()
print value
date = list(iso8601.parse_date(value).utctimetuple()) date = list(iso8601.parse_date(value).utctimetuple())
return date return date

Loading…
Cancel
Save