100 lines backlog

This commit is contained in:
JerryXiao 2019-04-11 16:37:58 +08:00
parent 71a1a470cc
commit d269d5ac53
Signed by: Jerry
GPG key ID: 9D9CE43650FF2BAA

View file

@ -59,7 +59,8 @@ if __name__ == '__main__':
lines.pop(0)
while True:
nlines = f.read().split('\n')
if len(nlines) == 1 and nlines[0] == '':
if not lines and \
len(nlines) == 1 and nlines[0] == '':
continue
else:
lines += nlines