[Zodb-checkins] SVN: ZODB/branches/gocept-iteration/src/ZODB/BaseStorage.py Always pickle the extension, even when it's just the empty dictionary (which

Christian Theune ct at gocept.com
Thu Feb 14 09:06:30 EST 2008


Log message for revision 83833:
  Always pickle the extension, even when it's just the empty dictionary (which
  it is by default).
  

Changed:
  U   ZODB/branches/gocept-iteration/src/ZODB/BaseStorage.py

-=-
Modified: ZODB/branches/gocept-iteration/src/ZODB/BaseStorage.py
===================================================================
--- ZODB/branches/gocept-iteration/src/ZODB/BaseStorage.py	2008-02-14 13:49:15 UTC (rev 83832)
+++ ZODB/branches/gocept-iteration/src/ZODB/BaseStorage.py	2008-02-14 14:06:28 UTC (rev 83833)
@@ -188,10 +188,7 @@
             user = transaction.user
             desc = transaction.description
             ext = transaction._extension
-            if ext:
-                ext = cPickle.dumps(ext, 1)
-            else:
-                ext = ""
+            ext = cPickle.dumps(ext, 1)
             self._ude = user, desc, ext
 
             if tid is None:



More information about the Zodb-checkins mailing list