Commit 5b7b764a authored by Guido van Rossum's avatar Guido van Rossum

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

dumbdbm archive created on Windows can be read on Unix.
parent 0aee7220
......@@ -52,7 +52,7 @@ class _Database:
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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment