From: Guido van Rossum Date: Fri, 21 Apr 2006 13:45:00 +0000 (+0000) Subject: Fix the unit tests by adding dispatch tables for DateTime and Binary. X-Git-Tag: v3.0a1~1431 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e4dea98e5aed37b71625cd76988433f5f8bee379;p=python Fix the unit tests by adding dispatch tables for DateTime and Binary. I'm not convinced this is the right thing to do... InstanceType makes no sense any longer. --- diff --git a/Lib/xmlrpclib.py b/Lib/xmlrpclib.py index 6fb6c68db5..bac0a9f98f 100644 --- a/Lib/xmlrpclib.py +++ b/Lib/xmlrpclib.py @@ -749,6 +749,8 @@ class Marshaller: # store instance attributes as a struct (really?) self.dump_struct(value.__dict__, write) dispatch[InstanceType] = dump_instance + dispatch[DateTime] = dump_instance + dispatch[Binary] = dump_instance ## # XML-RPC unmarshaller.