Commit c7baa885 authored by Andreas Jung's avatar Andreas Jung

the ZEO marshaller now uses Pickler with protocol 2 instead 0

parent 2fd42739
......@@ -25,7 +25,7 @@ class Marshaller:
def encode(self, msgid, flags, name, args):
"""Returns an encoded message"""
# (We used to have a global pickler, but that's not thread-safe. :-( )
pickler = cPickle.Pickler()
pickler = cPickle.Pickler(2)
pickler.fast = 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