[Zope3-checkins] CVS: Zope3/lib/python/Zope/Misc - DateTimeParse.py:1.10
Tim Peters
tim.one@comcast.net
Fri, 20 Dec 2002 17:31:08 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/Misc
In directory cvs.zope.org:/tmp/cvs-serv2135/lib/python/Zope/Misc
Modified Files:
DateTimeParse.py
Log Message:
Synch with the current version of datetime.py. This includes a beefed-
up test suite.
Note that tzinfo objects must now derive from datetime.tzinfo.
Note that repr() strings now include the module name, such as
datetime.date or datetime.timetz. This is for compatibility with the
Python 2.3's C implementation (which, alas, doesn't compile under
Python 2.2.2).
Note that there's a bug in Python 2.2.2 (fixed in CVS) that the test
suite worms around.
=== Zope3/lib/python/Zope/Misc/DateTimeParse.py 1.9 => 1.10 ===
--- Zope3/lib/python/Zope/Misc/DateTimeParse.py:1.9 Mon Nov 18 07:32:47 2002
+++ Zope3/lib/python/Zope/Misc/DateTimeParse.py Fri Dec 20 17:30:37 2002
@@ -837,7 +837,8 @@
parse = parser.parse
time = parser.time
-class tzinfo(object):
+from datetime import tzinfo as _tzinfo
+class tzinfo(_tzinfo):
__slots__ = ('offset', )