Diff of /Lib/xmlrpclib.py [5143cf] .. [60daba]  Maximize  Restore

Switch to side-by-side view

--- a/Lib/xmlrpclib.py
+++ b/Lib/xmlrpclib.py
@@ -343,7 +343,7 @@
 
     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)

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks