Kaydet (Commit) b2a0a838 authored tarafından Moshe Zadka's avatar Moshe Zadka

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

üst 010b0cc2
...@@ -313,7 +313,7 @@ class URLopener: ...@@ -313,7 +313,7 @@ class URLopener:
"""Use HTTPS protocol.""" """Use HTTPS protocol."""
import httplib import httplib
user_passwd = None user_passwd = None
if type(url) in types.StringTypes: if type(url) is types.StringType:
host, selector = splithost(url) host, selector = splithost(url)
if host: if host:
user_passwd, host = splituser(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