Skip to content

Commit 5ca0969

Browse files
committed
pylint wants yield from
1 parent ae3dd31 commit 5ca0969

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/filter/code.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,7 @@ def sketch(b):
139139

140140
def cycle(seq):
141141
while True:
142-
for s in seq:
143-
yield s
142+
yield from seq
144143

145144

146145
effects_cycle = iter(cycle(effects))

0 commit comments

Comments
 (0)