summaryrefslogtreecommitdiff
path: root/Lib/xmlrpclib.py
diff options
context:
space:
mode:
authorGustavo Niemeyer <gustavo@niemeyer.net>2003-06-16 02:49:42 +0000
committerGustavo Niemeyer <gustavo@niemeyer.net>2003-06-16 02:49:42 +0000
commitd5b8090e4cae9f966189ecd7cc0815da0706f12b (patch)
treec1c35c640e8b742700dbdeb83cbad43d2e7b9aae /Lib/xmlrpclib.py
parentf545baa0cce0fd92d5cd0d507e19c848ce9d95e8 (diff)
downloadcpython-git-d5b8090e4cae9f966189ecd7cc0815da0706f12b.tar.gz
Made DateTime's constructor accept a time.struct_time class,
besides plain tuples.
Diffstat (limited to 'Lib/xmlrpclib.py')
-rw-r--r--Lib/xmlrpclib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/xmlrpclib.py b/Lib/xmlrpclib.py
index a3b9e70391..a873f770fa 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)