From d757e73f660fcd930ad7602ab7c65de0a926c955 Mon Sep 17 00:00:00 2001 From: Amaury Forgeot d'Arc Date: Wed, 20 Aug 2008 08:58:40 +0000 Subject: [PATCH] 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(). --- Lib/multiprocessing/managers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/multiprocessing/managers.py b/Lib/multiprocessing/managers.py index d1522c2b8e0..f895d625fdd 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