readline generator no longer needs to yield empty strings

This commit is contained in:
Ronny Pfannschmidt 2018-03-09 14:58:11 +01:00
parent a406ca14d6
commit 3284d575e8
1 changed files with 0 additions and 2 deletions

View File

@ -280,8 +280,6 @@ def deindent(lines, offset=None):
def readline_generator(lines):
for line in lines:
yield line + '\n'
while True:
yield ''
it = readline_generator(lines)