Apply rstrip() to the lines read from _dirfile in _update(), so that a

dumbdbm archive created on Windows can be read on Unix.
This commit is contained in:
Guido van Rossum 2000-12-11 20:33:52 +00:00
parent 0aee7220db
commit 5b7b764afb
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ def _update(self):
pass
else:
while 1:
line = f.readline()
line = f.readline().rstrip()
if not line: break
key, (pos, siz) = eval(line)
self._index[key] = (pos, siz)