]> granicus.if.org Git - python/commitdiff
Fix two small bugs with proxies.
authorGuido van Rossum <guido@python.org>
Wed, 2 Apr 1997 05:46:35 +0000 (05:46 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 2 Apr 1997 05:46:35 +0000 (05:46 +0000)
Lib/urllib.py

index af943545d28a53f2e5f2992cca232c1b4e8b94c1..49c9032b223a4f701f62e206c1fd6fed7cbeb7c8 100644 (file)
@@ -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