diff options
author | Guido van Rossum <guido@python.org> | 2000-12-11 20:33:52 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-12-11 20:33:52 (GMT) |
commit | 5b7b764afb684d0442b11a1f53428868dc1e5ff4 (patch) | |
tree | adc97ea1591efbb07a0beba3255b0ae546ce664b /Lib/dumbdbm.py | |
parent | 0aee7220db3354ef32b5d1ac92f2c5942bb8eaf8 (diff) | |
download | cpython-5b7b764afb684d0442b11a1f53428868dc1e5ff4.zip cpython-5b7b764afb684d0442b11a1f53428868dc1e5ff4.tar.gz cpython-5b7b764afb684d0442b11a1f53428868dc1e5ff4.tar.bz2 |
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 0ce901f..9ed05d6 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) |