commit | fd97a919ffc075e5704cfd834986bada0f243165 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Mon Jan 15 14:34:20 2001 +0000 |
committer | Guido van Rossum <guido@python.org> | Mon Jan 15 14:34:20 2001 +0000 |
tree | 52ac326539f95cab87c0b236f462d35b09ec78de | |
parent | b35ffc0417a0861ccf466c0503c4151725a0267a [diff] |
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 3d3164e..27a9e01 100644 --- a/Lib/httplib.py +++ b/Lib/httplib.py
@@ -332,10 +332,7 @@ 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