summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMoshe Zadka <moshez@math.huji.ac.il>2001-01-08 07:09:25 (GMT)
committerMoshe Zadka <moshez@math.huji.ac.il>2001-01-08 07:09:25 (GMT)
commitb2a0a838e08b6d4e1d4ceffb7df90e121a70972d (patch)
treeee924ebc8ccd716e52b1ebe8aa8784fb4578b404 /Lib
parent010b0cc218cf67da0073173b60fd8dcbc81ddfff (diff)
downloadcpython-b2a0a838e08b6d4e1d4ceffb7df90e121a70972d.zip
cpython-b2a0a838e08b6d4e1d4ceffb7df90e121a70972d.tar.gz
cpython-b2a0a838e08b6d4e1d4ceffb7df90e121a70972d.tar.bz2
Fixed bug which caused HTTPS not to work at all with string URLs
Diffstat (limited to 'Lib')
-rw-r--r--Lib/urllib.py2
1 files changed, 1 insertions, 1 deletions
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)