]> granicus.if.org Git - python/commitdiff
Fix the unit tests by adding dispatch tables for DateTime and Binary.
authorGuido van Rossum <guido@python.org>
Fri, 21 Apr 2006 13:45:00 +0000 (13:45 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 21 Apr 2006 13:45:00 +0000 (13:45 +0000)
I'm not convinced this is the right thing to do...  InstanceType makes no sense any longer.

Lib/xmlrpclib.py

index 6fb6c68db51819ae1d7344701285e23bceb5cd20..bac0a9f98f16e15ff9e036d6bbc3d36752855e6c 100644 (file)
@@ -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.