zodb-checkins@zope.org
[Top] [All Lists]

[Zodb-checkins] SVN: ZODB/branches/gocept-iteration/src/ZODB/BaseStorag

Subject: [Zodb-checkins] SVN: ZODB/branches/gocept-iteration/src/ZODB/BaseStorage.py Always pickle the extension, even when it's just the empty dictionary (which
From: Christian Theune
Date: Thu, 14 Feb 2008 09:06:30 -0500 EST
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:

_______________________________________________
Zodb-checkins mailing list
Zodb-checkins@xxxxxxxx
http://mail.zope.org/mailman/listinfo/zodb-checkins

<Prev in Thread] Current Thread [Next in Thread>
  • [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 <=