From: Guido van Rossum Date: Wed, 2 Apr 1997 05:46:35 +0000 (+0000) Subject: Fix two small bugs with proxies. X-Git-Tag: v1.5a1~235 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fd79566d0f04c4cd1d98bca9396fbf2426f1c6ac;p=python Fix two small bugs with proxies. --- diff --git a/Lib/urllib.py b/Lib/urllib.py index af943545d2..49c9032b22 100644 --- a/Lib/urllib.py +++ b/Lib/urllib.py @@ -204,13 +204,14 @@ class URLopener: else: host, selector = url urltype, rest = splittype(selector) + user_passwd = None if string.lower(urltype) == 'http': realhost, rest = splithost(rest) user_passwd, realhost = splituser(realhost) if user_passwd: selector = "%s://%s%s" % (urltype, realhost, rest) - print "proxy via http:", host, selector + #print "proxy via http:", host, selector if not host: raise IOError, ('http error', 'no host given') if user_passwd: import base64