mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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().
This commit is contained in:
parent
8676534082
commit
d757e73f66
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue