summaryrefslogtreecommitdiffstats
path: root/Lib/dumbdbm.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/dumbdbm.py')
-rw-r--r--Lib/dumbdbm.py2
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)