From cf591cf2c6cacc090c7d40efdb3c40c815614fc3 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Thu, 8 Dec 2016 14:30:54 +0300 Subject: [PATCH] urllib.urequest: Fix stale variable name (line -> l). --- urllib.urequest/urllib/urequest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/urllib.urequest/urllib/urequest.py b/urllib.urequest/urllib/urequest.py index 659c8f3f..070d0a82 100644 --- a/urllib.urequest/urllib/urequest.py +++ b/urllib.urequest/urllib/urequest.py @@ -50,9 +50,9 @@ def urlopen(url, data=None, method="GET"): l = s.readline() if not l or l == b"\r\n": break - #print(line) + #print(l) if l.startswith(b"Transfer-Encoding:"): - if b"chunked" in line: + if b"chunked" in l: raise ValueError("Unsupported " + l) elif l.startswith(b"Location:"): raise NotImplementedError("Redirects not yet supported")