diff options
author | Guido van Rossum <guido@python.org> | 2000-12-11 20:33:52 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-12-11 20:33:52 +0000 |
commit | 99aad7b10ebbb7c8523fa5ddad471716d8a98ca9 (patch) | |
tree | 1eea451ce2100f11e9edb649c4cca2458c6bb360 /Lib/dumbdbm.py | |
parent | eaf951cac0e9bb9df1207e59d3bb047f3098e14f (diff) | |
download | cpython-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.py | 2 |
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) |