Skip to content

Commit 7d0d3ef

Browse files
committed
Fix use of input_generator
1 parent a46ee84 commit 7d0d3ef

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

curtsies/window.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,8 +533,7 @@ def demo():
533533
with FullscreenWindow(sys.stdout) as w:
534534
with input.Input(sys.stdin) as input_generator:
535535
rows, columns = w.t.height, w.t.width
536-
while True:
537-
c = input_generator.next()
536+
for c in input_generator
538537
assert isinstance(c, Text)
539538
if c == "":
540539
sys.exit() # same as raise SystemExit()

0 commit comments

Comments
 (0)