summaryrefslogtreecommitdiffstats
path: root/Lib/urllib/request.py
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2010-11-22 04:48:26 (GMT)
committerSenthil Kumaran <orsenthil@gmail.com>2010-11-22 04:48:26 (GMT)
commitc295862ce04c6bf2b1d2ba5b8218f6198c62a241 (patch)
treeceaa20b7dc94b3ecf4ee5bc0446011e6d32ac8a6 /Lib/urllib/request.py
parent1e600dc01fa294deb05243378e7419df1b6750ba (diff)
downloadcpython-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.py2
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