summaryrefslogtreecommitdiffstats
path: root/Lib/multiprocessing
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-08-20 08:58:40 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-08-20 08:58:40 (GMT)
commitd757e73f660fcd930ad7602ab7c65de0a926c955 (patch)
treea8a84e3bddb4bb89250d7634da0cdbcb55d8a7ee /Lib/multiprocessing
parent86765340825b609a47601f8b0d121f370736bb62 (diff)
downloadcpython-d757e73f660fcd930ad7602ab7c65de0a926c955.zip
cpython-d757e73f660fcd930ad7602ab7c65de0a926c955.tar.gz
cpython-d757e73f660fcd930ad7602ab7c65de0a926c955.tar.bz2
Partially revert r65883 to let the tests pass.
I am working on the proper fix, which is to use the custom pickler in connection.send(), instead of the standard pickle.dumps().
Diffstat (limited to 'Lib/multiprocessing')
-rw-r--r--Lib/multiprocessing/managers.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/multiprocessing/managers.py b/Lib/multiprocessing/managers.py
index d1522c2..f895d62 100644
--- a/Lib/multiprocessing/managers.py
+++ b/Lib/multiprocessing/managers.py
@@ -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