We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a86e7cf commit 1f91189Copy full SHA for 1f91189
upip/upip.py
@@ -127,13 +127,15 @@ def url_open(url):
127
l = s.readline()
128
protover, status, msg = l.split(None, 2)
129
if status != b"200":
130
+ s.close()
131
exc = ValueError(status)
132
if status == b"404":
133
fatal("Package not found", exc)
134
fatal("Unexpected error querying for package", exc)
135
while 1:
136
137
if not l:
138
139
fatal("Unexpected EOF in HTTP headers", ValueError())
140
if l == b'\r\n':
141
break
0 commit comments