From: Guido van Rossum Date: Mon, 15 Jan 2001 14:34:20 +0000 (+0000) Subject: Revert a change I accidentally checked in together with Ping's X-Git-Tag: v2.1a1~270 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fd97a919ffc075e5704cfd834986bada0f243165;p=python Revert a change I accidentally checked in together with Ping's "smallest patch ever". --- diff --git a/Lib/httplib.py b/Lib/httplib.py index 3d3164e9be..27a9e0110c 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