mirror of https://github.com/python/cpython.git
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:
parent
0aee7220db
commit
5b7b764afb
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue