[Python-checkins] CVS: python/dist/src/Lib dumbdbm.py,1.5,1.6
Guido van Rossum
python-dev@python.org
Mon, 11 Dec 2000 12:33:55 -0800
Update of /cvsroot/python/python/dist/src/Lib
In directory slayer.i.sourceforge.net:/tmp/cvs-serv13042
Modified Files:
dumbdbm.py
Log Message:
Apply rstrip() to the lines read from _dirfile in _update(), so that a
dumbdbm archive created on Windows can be read on Unix.
Index: dumbdbm.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/dumbdbm.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** dumbdbm.py 2000/07/10 13:56:35 1.5
--- dumbdbm.py 2000/12/11 20:33:52 1.6
***************
*** 53,57 ****
else:
while 1:
! line = f.readline()
if not line: break
key, (pos, siz) = eval(line)
--- 53,57 ----
else:
while 1:
! line = f.readline().rstrip()
if not line: break
key, (pos, siz) = eval(line)