[Zodb-checkins] CVS: ZODB3/ZODB - BaseStorage.py:1.24

Guido van Rossum guido@python.org
Sat, 28 Sep 2002 05:16:46 -0400


Update of /cvs-repository/ZODB3/ZODB
In directory cvs.zope.org:/tmp/cvs-serv18481

Modified Files:
	BaseStorage.py 
Log Message:
Fix a mysterious occurrence of 'dumps'.  Found by pychecker.  Jeremy
says it should be cPickle.dumps(), so do that.


=== ZODB3/ZODB/BaseStorage.py 1.23 => 1.24 ===
--- ZODB3/ZODB/BaseStorage.py:1.23	Wed Sep 11 13:07:34 2002
+++ ZODB3/ZODB/BaseStorage.py	Sat Sep 28 05:16:46 2002
@@ -17,6 +17,7 @@
 import string
 __version__ = string.split('$Revision$')[-2:][0]
 
+import cPickle
 import ThreadLock, bpthread
 import time, UndoLogCompatible
 import POSException
@@ -138,9 +139,9 @@
             desc = transaction.description
             ext = transaction._extension
             if ext:
-                ext = dumps(ext,1)
+                ext = cPickle.dumps(ext, 1)
             else:
-                ext=""
+                ext = ""
             self._ude = user, desc, ext
 
             if tid is None: