mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue