From: Moshe Zadka Date: Mon, 8 Jan 2001 07:09:25 +0000 (+0000) Subject: Fixed bug which caused HTTPS not to work at all with string URLs X-Git-Tag: v2.1a1~386 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b2a0a838e08b6d4e1d4ceffb7df90e121a70972d;p=python Fixed bug which caused HTTPS not to work at all with string URLs --- diff --git a/Lib/urllib.py b/Lib/urllib.py index 66f0aea741..d0031f6bce 100644 --- a/Lib/urllib.py +++ b/Lib/urllib.py @@ -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)