Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e4dea98

Browse files
committed
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.
1 parent d807328 commit e4dea98

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/xmlrpclib.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -749,6 +749,8 @@ def dump_instance(self, value, write):
749749
# store instance attributes as a struct (really?)
750750
self.dump_struct(value.__dict__, write)
751751
dispatch[InstanceType] = dump_instance
752+
dispatch[DateTime] = dump_instance
753+
dispatch[Binary] = dump_instance
752754

753755
##
754756
# XML-RPC unmarshaller.

0 commit comments

Comments
 (0)