[Zope-Checkins] CVS: ZODB3/ZODB - fsdump.py:1.12

Tim Peters tim.one at comcast.net
Tue Oct 14 13:50:30 EDT 2003


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

Modified Files:
	fsdump.py 
Log Message:
Removed unreferenced debugging code.


=== ZODB3/ZODB/fsdump.py 1.11 => 1.12 ===
--- ZODB3/ZODB/fsdump.py:1.11	Tue Oct 14 13:49:41 2003
+++ ZODB3/ZODB/fsdump.py	Tue Oct 14 13:50:29 2003
@@ -50,7 +50,6 @@
         print >> file, "\toffset=%d status=%s user=%s description=%s" % \
               (trans._tpos, `trans.status`, trans.user, trans.description)
         j = 0
-        tsize = 0
         for rec in trans:
             if rec.data is None:
                 fullclass = "undo or abort of object creation"
@@ -84,7 +83,6 @@
                 size += DATA_VERSION_HDR_LEN
             else:
                 size += DATA_HDR_LEN
-            tsize += size
             print >> file, "  data #%05d oid=%016x %sclass=%s size=%d %s" % \
                   (j, u64(rec.oid), version, fullclass, size, bp)
             j += 1




More information about the Zope-Checkins mailing list