From 5b7b764afb684d0442b11a1f53428868dc1e5ff4 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 11 Dec 2000 20:33:52 +0000 Subject: Apply rstrip() to the lines read from _dirfile in _update(), so that a dumbdbm archive created on Windows can be read on Unix. --- Lib/dumbdbm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v0.12