Fixed bug which caused HTTPS not to work at all with string URLs

This commit is contained in:
Moshe Zadka 2001-01-08 07:09:25 +00:00
parent 010b0cc218
commit b2a0a838e0
1 changed files with 1 additions and 1 deletions

View File

@ -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)