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
1 changed files with 2 additions and 1 deletions

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