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:
parent
5476b68c25
commit
ca2d85a6dc
@ -64,7 +64,7 @@ class LocalStatusFolder(BaseFolder):
|
|||||||
- fp: I/O object that points to the opened database file.
|
- fp: I/O object that points to the opened database file.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
for line in fp.xreadlines():
|
for line in fp:
|
||||||
line = line.strip()
|
line = line.strip()
|
||||||
try:
|
try:
|
||||||
uid, flags = line.split(':')
|
uid, flags = line.split(':')
|
||||||
@ -85,7 +85,7 @@ class LocalStatusFolder(BaseFolder):
|
|||||||
- fp: I/O object that points to the opened database file.
|
- fp: I/O object that points to the opened database file.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
for line in fp.xreadlines():
|
for line in fp:
|
||||||
line = line.strip()
|
line = line.strip()
|
||||||
try:
|
try:
|
||||||
uid, flags, mtime, labels = line.split('|')
|
uid, flags, mtime, labels = line.split('|')
|
||||||
|
Loading…
Reference in New Issue
Block a user