[Zodb-checkins] CVS: ZODB3/Tools - repozo.py:1.1.2.3

Barry Warsaw barry@wooz.org
Mon, 7 Apr 2003 17:54:57 -0400


Update of /cvs-repository/ZODB3/Tools
In directory cvs.zope.org:/tmp/cvs-serv20911

Modified Files:
      Tag: ZODB3-3_1-branch
	repozo.py 
Log Message:
dofile(): Add the length of the data read from the file to the
bytesread accumulator, not the chunklen which is the number of bytes
we wanted to read.


=== ZODB3/Tools/repozo.py 1.1.2.2 => 1.1.2.3 ===
--- ZODB3/Tools/repozo.py:1.1.2.2	Tue Feb 11 13:26:52 2003
+++ ZODB3/Tools/repozo.py	Mon Apr  7 17:54:56 2003
@@ -197,7 +197,7 @@
         if not data:
             break
         func(data)
-        bytesread += chunklen
+        bytesread += len(data)
     return bytesread