[Zope-Checkins] SVN: Zope/trunk/lib/python/ZEO/zrpc/marshal.py the ZEO marshaller now uses Pickler with protocol 2 instead 0

Andreas Jung andreas at andreas-jung.com
Fri Oct 1 04:27:32 EDT 2004


Log message for revision 27729:
  the ZEO marshaller now uses Pickler with protocol 2 instead 0
  


Changed:
  U   Zope/trunk/lib/python/ZEO/zrpc/marshal.py


-=-
Modified: Zope/trunk/lib/python/ZEO/zrpc/marshal.py
===================================================================
--- Zope/trunk/lib/python/ZEO/zrpc/marshal.py	2004-09-30 23:07:33 UTC (rev 27728)
+++ Zope/trunk/lib/python/ZEO/zrpc/marshal.py	2004-10-01 08:27:32 UTC (rev 27729)
@@ -25,7 +25,7 @@
     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)
 



More information about the Zope-Checkins mailing list