mirror of
https://github.com/python/cpython.git
synced 2024-11-25 19:03:49 +08:00
Convert raise to call exception class. Add whitespace.
This commit is contained in:
parent
4e54730ed5
commit
fbd79944a8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user