diff options
author | Senthil Kumaran <orsenthil@gmail.com> | 2010-11-22 04:48:26 (GMT) |
---|---|---|
committer | Senthil Kumaran <orsenthil@gmail.com> | 2010-11-22 04:48:26 (GMT) |
commit | c295862ce04c6bf2b1d2ba5b8218f6198c62a241 (patch) | |
tree | ceaa20b7dc94b3ecf4ee5bc0446011e6d32ac8a6 /Lib/urllib/request.py | |
parent | 1e600dc01fa294deb05243378e7419df1b6750ba (diff) | |
download | cpython-c295862ce04c6bf2b1d2ba5b8218f6198c62a241.zip cpython-c295862ce04c6bf2b1d2ba5b8218f6198c62a241.tar.gz cpython-c295862ce04c6bf2b1d2ba5b8218f6198c62a241.tar.bz2 |
Fix Issue4493 - urllib2 adds '/' to the path component of url, when it does not
starts with one. This behavior is exhibited by browser and other clients.
Diffstat (limited to 'Lib/urllib/request.py')
-rw-r--r-- | Lib/urllib/request.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py index f3fb7be..fe66a67 100644 --- a/Lib/urllib/request.py +++ b/Lib/urllib/request.py @@ -105,7 +105,7 @@ from urllib.response import addinfourl, addclosehook # check for SSL try: import ssl -except: +except ImportError: _have_ssl = False else: _have_ssl = True |