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 | 5b7b764afb684d0442b11a1f53428868dc1e5ff4 (patch) | |
| tree | adc97ea1591efbb07a0beba3255b0ae546ce664b | |
| parent | 0aee7220db3354ef32b5d1ac92f2c5942bb8eaf8 (diff) | |
| download | cpython-git-5b7b764afb684d0442b11a1f53428868dc1e5ff4.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.
| -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) |
