diff options
author | Gustavo Niemeyer <gustavo@niemeyer.net> | 2003-06-16 02:49:42 (GMT) |
---|---|---|
committer | Gustavo Niemeyer <gustavo@niemeyer.net> | 2003-06-16 02:49:42 (GMT) |
commit | d5b8090e4cae9f966189ecd7cc0815da0706f12b (patch) | |
tree | c1c35c640e8b742700dbdeb83cbad43d2e7b9aae /Lib/xmlrpclib.py | |
parent | f545baa0cce0fd92d5cd0d507e19c848ce9d95e8 (diff) | |
download | cpython-d5b8090e4cae9f966189ecd7cc0815da0706f12b.zip cpython-d5b8090e4cae9f966189ecd7cc0815da0706f12b.tar.gz cpython-d5b8090e4cae9f966189ecd7cc0815da0706f12b.tar.bz2 |
Made DateTime's constructor accept a time.struct_time class,
besides plain tuples.
Diffstat (limited to 'Lib/xmlrpclib.py')
-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) |