[Zope-Checkins] CVS: Zope/lib/python - xmlrpclib.py:1.10
Toby Dickenson
tdickenson@geminidataloggers.com
Wed, 10 Jul 2002 05:59:13 -0400
Update of /cvs-repository/Zope/lib/python
In directory cvs.zope.org:/tmp/cvs-serv12900
Modified Files:
xmlrpclib.py
Log Message:
backported fix for DateTime from xmlrpclib 1.0.0
=== Zope/lib/python/xmlrpclib.py 1.9 => 1.10 ===
class DateTime:
def __init__(self, value=0):
- t = type(value)
- if not isinstance(t, StringType):
- if not isinstance(t, TupleType):
+ if not isinstance(value, StringType):
+ if not isinstance(value, TupleType):
if value == 0:
value = time.time()
value = time.localtime(value)