[Zodb-checkins] CVS: Zope3/src/zodb - serialize.py:1.5
Jeremy Hylton
jeremy@zope.com
Tue, 21 Jan 2003 16:00:34 -0500
Update of /cvs-repository/Zope3/src/zodb
In directory cvs.zope.org:/tmp/cvs-serv7106
Modified Files:
serialize.py
Log Message:
Use seek() instead of oddball reset().
=== Zope3/src/zodb/serialize.py 1.4 => 1.5 ===
--- Zope3/src/zodb/serialize.py:1.4 Tue Jan 21 15:54:33 2003
+++ Zope3/src/zodb/serialize.py Tue Jan 21 16:00:31 2003
@@ -144,7 +144,7 @@
# To reuse the existing cStringIO object, we must reset
# the file position to 0 and truncate the file after the
# new pickle is written.
- self._file.reset()
+ self._file.seek(0)
self._p.clear_memo()
self._p.dump(classmeta)
self._p.dump(state)