[Zope3-checkins] CVS: Zope3/src/zope/i18n - format.py:1.10

Jeremy Hylton jeremy@zope.com
Mon, 30 Jun 2003 12:29:16 -0400


Update of /cvs-repository/Zope3/src/zope/i18n
In directory cvs.zope.org:/tmp/cvs-serv19427

Modified Files:
	format.py 
Log Message:
Fix explicit comparison with False.


=== Zope3/src/zope/i18n/format.py 1.9 => 1.10 ===
--- Zope3/src/zope/i18n/format.py:1.9	Mon Jun 30 12:25:23 2003
+++ Zope3/src/zope/i18n/format.py	Mon Jun 30 12:29:15 2003
@@ -69,10 +69,10 @@
         try:
             results = re.match(regex, text).groups()
         except AttributeError:
-            raise DateTimeParseError, \
-                  'The datetime string did not match the pattern.'
+            raise DateTimeParseError(
+                  'The datetime string did not match the pattern.')
         # Sometimes you only want the parse results
-        if asObject == False:
+        if not asObject:
             return results
         # Map the parsing results to a datetime object
         ordered = [0, 0, 0, 0, 0, 0, 0]