From: <los...@us...> - 2009-01-20 23:09:02
|
Revision: 720 http://fail2ban.svn.sourceforge.net/fail2ban/?rev=720&view=rev Author: lostcontrol Date: 2009-01-20 23:08:59 +0000 (Tue, 20 Jan 2009) Log Message: ----------- - Removed print. Modified Paths: -------------- branches/FAIL2BAN-0_8/server/datetemplate.py Modified: branches/FAIL2BAN-0_8/server/datetemplate.py =================================================================== --- branches/FAIL2BAN-0_8/server/datetemplate.py 2009-01-20 21:48:04 UTC (rev 719) +++ branches/FAIL2BAN-0_8/server/datetemplate.py 2009-01-20 23:08:59 UTC (rev 720) @@ -132,7 +132,7 @@ conv = self.convertLocale(dateMatch.group()) try: date = list(time.strptime(conv, self.getPattern())) - except ValueError: + except ValueError, e: # Try to add the current year to the pattern. Should fix # the "Feb 29" issue. conv += " %s" % MyTime.gmtime()[0] @@ -187,6 +187,5 @@ if dateMatch: # Parses the date. value = dateMatch.group() - print value date = list(iso8601.parse_date(value).utctimetuple()) return date This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |