diff options
author | Guido van Rossum <guido@python.org> | 1997-04-02 05:46:35 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-04-02 05:46:35 (GMT) |
commit | fd79566d0f04c4cd1d98bca9396fbf2426f1c6ac (patch) | |
tree | d417c2c646273a44a681b48f145126cecefd9087 /Lib/urllib.py | |
parent | a9a3575e26769d21a90aa16efee0c7597c9a180d (diff) | |
download | cpython-fd79566d0f04c4cd1d98bca9396fbf2426f1c6ac.zip cpython-fd79566d0f04c4cd1d98bca9396fbf2426f1c6ac.tar.gz cpython-fd79566d0f04c4cd1d98bca9396fbf2426f1c6ac.tar.bz2 |
Fix two small bugs with proxies.
Diffstat (limited to 'Lib/urllib.py')
-rw-r--r-- | Lib/urllib.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/urllib.py b/Lib/urllib.py index af94354..49c9032 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 |