Commit fbd79944 authored by Jeremy Hylton's avatar Jeremy Hylton

Convert raise to call exception class. Add whitespace.

parent 4e54730e
......@@ -368,7 +368,7 @@ class HTTPConnection:
try:
port = int(host[i+1:])
except ValueError:
raise InvalidURL, "nonnumeric port: '%s'"%host[i+1:]
raise InvalidURL("nonnumeric port: '%s'" % host[i+1:])
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