Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b2a0a83

Browse files
author
Moshe Zadka
committed
Fixed bug which caused HTTPS not to work at all with string URLs
1 parent 010b0cc commit b2a0a83

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/urllib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ def open_https(self, url, data=None):
313313
"""Use HTTPS protocol."""
314314
import httplib
315315
user_passwd = None
316-
if type(url) in types.StringTypes:
316+
if type(url) is types.StringType:
317317
host, selector = splithost(url)
318318
if host:
319319
user_passwd, host = splituser(host)

0 commit comments

Comments
 (0)