Fixed bug which caused HTTPS not to work at all with string URLs
This commit is contained in:
parent
010b0cc218
commit
b2a0a838e0
|
@ -313,7 +313,7 @@ class URLopener:
|
|||
"""Use HTTPS protocol."""
|
||||
import httplib
|
||||
user_passwd = None
|
||||
if type(url) in types.StringTypes:
|
||||
if type(url) is types.StringType:
|
||||
host, selector = splithost(url)
|
||||
if host:
|
||||
user_passwd, host = splituser(host)
|
||||
|
|
Loading…
Reference in New Issue