Kaydet (Commit) d757e73f authored tarafından Amaury Forgeot d'Arc's avatar Amaury Forgeot d'Arc

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().
üst 86765340
...@@ -45,6 +45,8 @@ if view_types[0] is not list: # only needed in Py3.0 ...@@ -45,6 +45,8 @@ if view_types[0] is not list: # only needed in Py3.0
return list, (list(obj),) return list, (list(obj),)
for view_type in view_types: for view_type in view_types:
ForkingPickler.register(view_type, rebuild_as_list) ForkingPickler.register(view_type, rebuild_as_list)
import copyreg
copyreg.pickle(view_type, rebuild_as_list)
# #
# Type for identifying shared objects # Type for identifying shared objects
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment