summaryrefslogtreecommitdiffstats
path: root/Lib/httplib.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-01-15 14:34:20 (GMT)
committerGuido van Rossum <guido@python.org>2001-01-15 14:34:20 (GMT)
commitfd97a919ffc075e5704cfd834986bada0f243165 (patch)
tree52ac326539f95cab87c0b236f462d35b09ec78de /Lib/httplib.py
parentb35ffc0417a0861ccf466c0503c4151725a0267a (diff)
downloadcpython-fd97a919ffc075e5704cfd834986bada0f243165.zip
cpython-fd97a919ffc075e5704cfd834986bada0f243165.tar.gz
cpython-fd97a919ffc075e5704cfd834986bada0f243165.tar.bz2
Revert a change I accidentally checked in together with Ping's
"smallest patch ever".
Diffstat (limited to 'Lib/httplib.py')
-rw-r--r--Lib/httplib.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/httplib.py b/Lib/httplib.py
index 3d3164e..27a9e01 100644
--- a/Lib/httplib.py
+++ b/Lib/httplib.py
@@ -332,10 +332,7 @@ class HTTPConnection:
if port is None:
i = host.find(':')
if i >= 0:
- try:
- port = int(host[i+1:])
- except ValueError, msg:
- raise socket.error, str(msg)
+ port = int(host[i+1:])
host = host[:i]
else:
port = self.default_port