Convert raise to call exception class. Add whitespace.

This commit is contained in:
Jeremy Hylton 2002-07-02 20:19:08 +00:00
parent 4e54730ed5
commit fbd79944a8
1 changed files with 1 additions and 1 deletions

View File

@ -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