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 <angus@redyak.com.au>
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy