commit | 5b7b764afb684d0442b11a1f53428868dc1e5ff4 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Mon Dec 11 20:33:52 2000 +0000 |
committer | Guido van Rossum <guido@python.org> | Mon Dec 11 20:33:52 2000 +0000 |
tree | adc97ea1591efbb07a0beba3255b0ae546ce664b | |
parent | 0aee7220db3354ef32b5d1ac92f2c5942bb8eaf8 [diff] |
Apply rstrip() to the lines read from _dirfile in _update(), so that a dumbdbm archive created on Windows can be read on Unix.
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 @@ 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)