From ca2d85a6dc0a16f9692abf1c2fa3c5e1eefcac92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20=C5=BBarnowiecki?= Date: Sun, 8 May 2016 17:34:38 +0200 Subject: [PATCH] Remove xreadlines calls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Łukasz Żarnowiecki Signed-off-by: Nicolas Sebrecht --- offlineimap/folder/LocalStatus.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/offlineimap/folder/LocalStatus.py b/offlineimap/folder/LocalStatus.py index e8b3a39..2bfd30e 100644 --- a/offlineimap/folder/LocalStatus.py +++ b/offlineimap/folder/LocalStatus.py @@ -64,7 +64,7 @@ class LocalStatusFolder(BaseFolder): - fp: I/O object that points to the opened database file. """ - for line in fp.xreadlines(): + for line in fp: line = line.strip() try: uid, flags = line.split(':') @@ -85,7 +85,7 @@ class LocalStatusFolder(BaseFolder): - fp: I/O object that points to the opened database file. """ - for line in fp.xreadlines(): + for line in fp: line = line.strip() try: uid, flags, mtime, labels = line.split('|')