]> granicus.if.org Git - python/commitdiff
Revert a change I accidentally checked in together with Ping's
authorGuido van Rossum <guido@python.org>
Mon, 15 Jan 2001 14:34:20 +0000 (14:34 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 15 Jan 2001 14:34:20 +0000 (14:34 +0000)
"smallest patch ever".

Lib/httplib.py

index 3d3164e9beeabd8843301b5dc74b810654351f2d..27a9e0110c6b19fb1de697122eeaf3ff5edbf0c7 100644 (file)
@@ -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