Commit aff79779 authored by Tim Peters's avatar Tim Peters

Revert rev 27729.

Changing to pickle protocol 2 has severe backward compatibility
implications; changes to ZODB should not be made from the Zope
trunk regardless.
parent 80a25f8b
...@@ -25,7 +25,7 @@ class Marshaller: ...@@ -25,7 +25,7 @@ class Marshaller:
def encode(self, msgid, flags, name, args): def encode(self, msgid, flags, name, args):
"""Returns an encoded message""" """Returns an encoded message"""
# (We used to have a global pickler, but that's not thread-safe. :-( ) # (We used to have a global pickler, but that's not thread-safe. :-( )
pickler = cPickle.Pickler(2) pickler = cPickle.Pickler()
pickler.fast = 1 pickler.fast = 1
return pickler.dump((msgid, flags, name, args), 1) return pickler.dump((msgid, flags, name, args), 1)
......
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