[PATCH 14/15] Remove xreadlines calls

Łukasz Żarnowiecki dolohow at outlook.com
Tue May 10 00:18:36 BST 2016


Signed-off-by: Łukasz Żarnowiecki <dolohow at outlook.com>
---
 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 e3eb40b..4c6e14e 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('|')
-- 
2.8.2





More information about the OfflineIMAP-project mailing list