diff options
-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) |