Fix lint
This commit is contained in:
parent
4b78b22b9a
commit
cca26f0f13
@ -191,7 +191,7 @@ class AppendLineParser(BaseLineParser):
|
|||||||
do_save = self._prepare_save()
|
do_save = self._prepare_save()
|
||||||
if not do_save:
|
if not do_save:
|
||||||
return
|
return
|
||||||
with self._open('w') as f:
|
with self._open('w'):
|
||||||
pass
|
pass
|
||||||
self.new_data = []
|
self.new_data = []
|
||||||
self._after_save()
|
self._after_save()
|
||||||
@ -254,6 +254,7 @@ class LineParser(BaseLineParser):
|
|||||||
self.data = []
|
self.data = []
|
||||||
self.save()
|
self.save()
|
||||||
|
|
||||||
|
|
||||||
class LimitLineParser(LineParser):
|
class LimitLineParser(LineParser):
|
||||||
|
|
||||||
"""A LineParser with a limited count of lines.
|
"""A LineParser with a limited count of lines.
|
||||||
|
@ -57,6 +57,9 @@ class LineparserSaveStub(lineparser.BaseLineParser):
|
|||||||
def save(self):
|
def save(self):
|
||||||
self.saved = self.data
|
self.saved = self.data
|
||||||
|
|
||||||
|
def clear(self):
|
||||||
|
pass
|
||||||
|
|
||||||
def __iter__(self):
|
def __iter__(self):
|
||||||
return iter(self.data)
|
return iter(self.data)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user