Skip to content

Commit b46306c

Browse files
projectgusdpgeorge
authored andcommitted
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 <[email protected]>
1 parent 991ac98 commit b46306c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

micropython/uaiohttpclient/example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def print_stream(resp):
99
print((yield from resp.read()))
1010
return
1111
while True:
12-
line = yield from reader.readline()
12+
line = yield from resp.readline()
1313
if not line:
1414
break
1515
print(line.rstrip())

0 commit comments

Comments
 (0)