From b2a0a838e08b6d4e1d4ceffb7df90e121a70972d Mon Sep 17 00:00:00 2001 From: Moshe Zadka Date: Mon, 8 Jan 2001 07:09:25 +0000 Subject: Fixed bug which caused HTTPS not to work at all with string URLs --- Lib/urllib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/urllib.py b/Lib/urllib.py index 66f0aea..d0031f6 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) -- cgit v0.12