[Zope3-checkins] CVS: Zope3/lib/python/Zope/Misc - DateTimeParse.py:1.6

Steve Alexander steve@cat-box.net
Mon, 11 Nov 2002 11:42:26 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/Misc
In directory cvs.zope.org:/tmp/cvs-serv21498/lib/python/Zope/Misc

Modified Files:
	DateTimeParse.py 
Log Message:
Removed another bare except:

Changed a comment "# ??" to "# XXX ??" so that it will be found in searches
for XXX.


=== Zope3/lib/python/Zope/Misc/DateTimeParse.py 1.5 => 1.6 ===
--- Zope3/lib/python/Zope/Misc/DateTimeParse.py:1.5	Mon Nov 11 11:37:57 2002
+++ Zope3/lib/python/Zope/Misc/DateTimeParse.py	Mon Nov 11 11:42:26 2002
@@ -251,7 +251,7 @@
         # Get the name of the current time zone depending
         # on DST.
         _localzone = _cache._zmap[tzname[isDST].lower()]
-    except:
+    except KeyError:
         try:
             # Generate a GMT-offset zone name.
             if isDST:
@@ -366,7 +366,7 @@
         if numericTimeZoneMatch(tz) is not None:
             return -int(tz[1:3])*3600-int(tz[3:5])*60
         else:
-            return 0 # ??
+            return 0 # XXX ??
 
 def _correctYear(year):
     # Y2K patch.