]> granicus.if.org Git - python/commitdiff
Partially revert r65883 to let the tests pass.
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>
Wed, 20 Aug 2008 08:58:40 +0000 (08:58 +0000)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>
Wed, 20 Aug 2008 08:58:40 +0000 (08:58 +0000)
I am working on the proper fix, which is to use the custom pickler in connection.send(),
instead of the standard pickle.dumps().

Lib/multiprocessing/managers.py

index d1522c2b8e02148a919d92abfa3bf8ae50e2ae2d..f895d625fdd9d5b06e7582920642dd49914c1f4a 100644 (file)
@@ -45,6 +45,8 @@ if view_types[0] is not list:       # only needed in Py3.0
         return list, (list(obj),)
     for view_type in view_types:
         ForkingPickler.register(view_type, rebuild_as_list)
+        import copyreg
+        copyreg.pickle(view_type, rebuild_as_list)
 
 #
 # Type for identifying shared objects