From: Guido van Rossum Date: Mon, 11 Dec 2000 20:33:52 +0000 (+0000) Subject: Apply rstrip() to the lines read from _dirfile in _update(), so that a X-Git-Tag: v2.1a1~641 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5b7b764afb684d0442b11a1f53428868dc1e5ff4;p=python 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 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)