summaryrefslogtreecommitdiff
path: root/Lib/dumbdbm.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-12-11 20:33:52 +0000
committerGuido van Rossum <guido@python.org>2000-12-11 20:33:52 +0000
commit99aad7b10ebbb7c8523fa5ddad471716d8a98ca9 (patch)
tree1eea451ce2100f11e9edb649c4cca2458c6bb360 /Lib/dumbdbm.py
parenteaf951cac0e9bb9df1207e59d3bb047f3098e14f (diff)
downloadcpython-99aad7b10ebbb7c8523fa5ddad471716d8a98ca9.tar.gz
Apply rstrip() to the lines read from _dirfile in _update(), so that a
dumbdbm archive created on Windows can be read on Unix.
Diffstat (limited to 'Lib/dumbdbm.py')
-rw-r--r--Lib/dumbdbm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/dumbdbm.py b/Lib/dumbdbm.py
index 0ce901fca5..9ed05d6373 100644
--- a/Lib/dumbdbm.py
+++ b/Lib/dumbdbm.py
@@ -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)