Commit 3423ea06 authored by Guido van Rossum's avatar Guido van Rossum

Revert a change I accidentally checked in together with Ping's

"smallest patch ever".
parent 4696650c
......@@ -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)
host = host[:i]
else:
port = self.default_port
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment