urllib.urequest: Fix stale variable name (line -> l).

pull/89/merge
Paul Sokolovsky 2016-12-08 14:30:54 +03:00
rodzic 94be568a03
commit cf591cf2c6
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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")