[Zope-Checkins] CVS: Packages/ZEO/zrpc - marshal.py:1.11.66.1

Andreas Jung andreas at andreas-jung.com
Fri Oct 1 02:58:48 EDT 2004


Update of /cvs-repository/Packages/ZEO/zrpc
In directory cvs.zope.org:/tmp/cvs-serv7613

Modified Files:
      Tag: Zope-2_7-branch
	marshal.py 
Log Message:
use the binary mode to pickle objects


=== Packages/ZEO/zrpc/marshal.py 1.11 => 1.11.66.1 ===
--- Packages/ZEO/zrpc/marshal.py:1.11	Sat Sep 28 23:24:47 2002
+++ Packages/ZEO/zrpc/marshal.py	Fri Oct  1 02:58:47 2004
@@ -26,7 +26,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(1)
         pickler.fast = 1
         return pickler.dump((msgid, flags, name, args), 1)
 



More information about the Zope-Checkins mailing list