diff options
-rw-r--r-- | Lib/xmlrpclib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/xmlrpclib.py b/Lib/xmlrpclib.py index a3b9e70..a873f77 100644 --- a/Lib/xmlrpclib.py +++ b/Lib/xmlrpclib.py @@ -343,7 +343,7 @@ class DateTime: def __init__(self, value=0): if not isinstance(value, StringType): - if not isinstance(value, TupleType): + if not isinstance(value, (TupleType, time.struct_time)): if value == 0: value = time.time() value = time.localtime(value) |