Remove xreadlines calls

Signed-off-by: Łukasz Żarnowiecki <dolohow@outlook.com>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Łukasz Żarnowiecki 2016-05-08 17:34:38 +02:00 committed by Nicolas Sebrecht
parent 5476b68c25
commit ca2d85a6dc

View File

@ -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('|')