Commit b2a0a838 authored by Moshe Zadka's avatar Moshe Zadka

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

parent 010b0cc2
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment