Skip to content

Commit fd79566

Browse files
committed
Fix two small bugs with proxies.
1 parent a9a3575 commit fd79566

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/urllib.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,13 +204,14 @@ def open_http(self, url, data=None):
204204
else:
205205
host, selector = url
206206
urltype, rest = splittype(selector)
207+
user_passwd = None
207208
if string.lower(urltype) == 'http':
208209
realhost, rest = splithost(rest)
209210
user_passwd, realhost = splituser(realhost)
210211
if user_passwd:
211212
selector = "%s://%s%s" % (urltype,
212213
realhost, rest)
213-
print "proxy via http:", host, selector
214+
#print "proxy via http:", host, selector
214215
if not host: raise IOError, ('http error', 'no host given')
215216
if user_passwd:
216217
import base64

0 commit comments

Comments
 (0)