From fd97a919ffc075e5704cfd834986bada0f243165 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 15 Jan 2001 14:34:20 +0000 Subject: [PATCH] Revert a change I accidentally checked in together with Ping's "smallest patch ever". --- Lib/httplib.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Lib/httplib.py b/Lib/httplib.py index 3d3164e9bee..27a9e0110c6 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