Blame python-2.5-xmlrpclib-marshal-objects.patch

3939a1
--- Python-2.5/Lib/xmlrpclib.py.orig	2007-04-10 10:29:14.000000000 -0400
3939a1
+++ Python-2.5/Lib/xmlrpclib.py	2007-06-19 12:08:04.000000000 -0400
3939a1
@@ -630,6 +630,9 @@
3939a1
         try:
3939a1
             f = self.dispatch[type(value)]
3939a1
         except KeyError:
3939a1
-            raise TypeError, "cannot marshal %s objects" % type(value)
3939a1
+            if isinstance(value, object):
3939a1
+                self.dump_instance(value, write)
3939a1
+            else:
3939a1
+                raise TypeError, "cannot marshal %s objects" % type(value)
3939a1
         else:
3939a1
             f(self, value, write)