]> granicus.if.org Git - python/commitdiff
Fixed bug which caused HTTPS not to work at all with string URLs
authorMoshe Zadka <moshez@math.huji.ac.il>
Mon, 8 Jan 2001 07:09:25 +0000 (07:09 +0000)
committerMoshe Zadka <moshez@math.huji.ac.il>
Mon, 8 Jan 2001 07:09:25 +0000 (07:09 +0000)
Lib/urllib.py

index 66f0aea741f59119c840b1f2e1b0c7c3d0be056c..d0031f6bce646a13ffb79cd8b16997c3f9b4d5d4 100644 (file)
@@ -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)