rpms/python/devel python-2.5-xmlrpclib-marshal-objects.patch, NONE, 1.1

Mike Bonnet (mikeb) fedora-extras-commits at redhat.com
Tue Oct 16 17:03:44 UTC 2007


Author: mikeb

Update of /cvs/pkgs/rpms/python/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv8099

Added Files:
	python-2.5-xmlrpclib-marshal-objects.patch 
Log Message:
fix marshalling of objects in xmlrpclib (python bug #1739842)

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

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




More information about the fedora-extras-commits mailing list