mirror of
https://github.com/python/cpython
synced 2026-09-28 06:38:16 +03:00
Fixed bug which caused HTTPS not to work at all with string URLs
This commit is contained in:
parent
010b0cc218
commit
b2a0a838e0
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue