[Zope-Checkins] CVS: Zope/lib/python/DateTime - DateTime.py:1.71.2.3

Jim Fulton jim@zope.com
Sat, 12 Jan 2002 14:37:27 -0500


Update of /cvs-repository/Zope/lib/python/DateTime
In directory cvs.zope.org:/tmp/cvs-serv15830

Modified Files:
      Tag: Zope-2_5-branch
	DateTime.py 
Log Message:
The DateTime module was changed to no longer import the string module, 
but one of the uses of string.atoi wasn't fixed.  There also wasn't a
test for this. :(



=== Zope/lib/python/DateTime/DateTime.py 1.71.2.2 => 1.71.2.3 ===
     except:
         if numericTimeZoneMatch(tz) is not None:
-            return atoi(tz[1:3])*3600+atoi(tz[3:5])*60
+            return int(tz[1:3])*3600+int(tz[3:5])*60
         else:
             return 0 # ??