[Zodb-checkins] CVS: ZODB3/ZODB - fsdump.py:1.10

Jeremy Hylton jeremy at zope.com
Tue Oct 14 13:11:41 EDT 2003


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

Modified Files:
	fsdump.py 
Log Message:
Quick fix for a len() of unsized object problem.

Not sure why this happens.


=== ZODB3/ZODB/fsdump.py 1.9 => 1.10 ===
--- ZODB3/ZODB/fsdump.py:1.9	Tue Oct 14 12:31:57 2003
+++ ZODB3/ZODB/fsdump.py	Tue Oct 14 13:11:40 2003
@@ -75,7 +75,11 @@
             if rec.data_txn:
                 size = 8 + len(rec.version)
             else:
-                size = len(rec.data) + len(rec.version)
+                if rec.data is None:
+                    # XXX why is rec.data None and rec.data_txn False?
+                    size = len(rec.version)
+                else:
+                    size = len(rec.data) + len(rec.version)
             if rec.version:
                 size += DATA_VERSION_HDR_LEN
             else:




More information about the Zodb-checkins mailing list