mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00: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 @@ def open_https(self, url, data=None):
|
|||
"""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