NON-WORKING python with an older version of the MinGW patch.
[fedora-mingw.git] / python / python-2.5-xmlrpclib-marshal-objects.patch
1 --- Python-2.5/Lib/xmlrpclib.py.orig    2007-04-10 10:29:14.000000000 -0400
2 +++ Python-2.5/Lib/xmlrpclib.py 2007-06-19 12:08:04.000000000 -0400
3 @@ -630,6 +630,9 @@
4          try:
5              f = self.dispatch[type(value)]
6          except KeyError:
7 -            raise TypeError, "cannot marshal %s objects" % type(value)
8 +            if isinstance(value, object):
9 +                self.dump_instance(value, write)
10 +            else:
11 +                raise TypeError, "cannot marshal %s objects" % type(value)
12          else:
13              f(self, value, write)