diff options
| author | Guido van Rossum <guido@python.org> | 2001-01-15 14:34:20 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 2001-01-15 14:34:20 +0000 |
| commit | 3423ea064d9ce553345abc36135b8d4994692ec8 (patch) | |
| tree | 8ce4dbe8c991a5c512d30cea8b35260704957099 /Lib | |
| parent | 4696650cd386a54b20d7e5a812a80d5beb8609e5 (diff) | |
| download | cpython-3423ea064d9ce553345abc36135b8d4994692ec8.tar.gz | |
Revert a change I accidentally checked in together with Ping's
"smallest patch ever".
Diffstat (limited to 'Lib')
| -rw-r--r-- | Lib/httplib.py | 5 |
1 files changed, 1 insertions, 4 deletions
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 |
