From b46306cc5a7ce9332407345025cba4afca6ca967 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Wed, 9 Aug 2023 18:54:57 +1000 Subject: [PATCH] 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 --- micropython/uaiohttpclient/example.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/micropython/uaiohttpclient/example.py b/micropython/uaiohttpclient/example.py index 4134c7ee..5c03ee29 100644 --- a/micropython/uaiohttpclient/example.py +++ b/micropython/uaiohttpclient/example.py @@ -9,7 +9,7 @@ def print_stream(resp): print((yield from resp.read())) return while True: - line = yield from reader.readline() + line = yield from resp.readline() if not line: break print(line.rstrip())