kopia lustrzana https://github.com/micropython/micropython-lib
uaiohttpclient: Fix missing name in unreachable example code.
As-written this code is unreachable (return statement two line above), so this change is really just to make the linter happy. Found by Ruff checking F821. Signed-off-by: Angus Gratton <angus@redyak.com.au>pull/714/head
rodzic
991ac986fd
commit
b46306cc5a
|
@ -9,7 +9,7 @@ def print_stream(resp):
|
||||||
print((yield from resp.read()))
|
print((yield from resp.read()))
|
||||||
return
|
return
|
||||||
while True:
|
while True:
|
||||||
line = yield from reader.readline()
|
line = yield from resp.readline()
|
||||||
if not line:
|
if not line:
|
||||||
break
|
break
|
||||||
print(line.rstrip())
|
print(line.rstrip())
|
||||||
|
|
Ładowanie…
Reference in New Issue