Commit 45189c67 authored by Toby Dickenson's avatar Toby Dickenson

backported fix for DateTime from xmlrpclib 1.0.0

parent a426a97a
......@@ -191,9 +191,8 @@ def boolean(value, truefalse=(False, True)):
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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment