mirror of
https://github.com/python/cpython.git
synced 2026-05-24 13:23:00 -04:00
Convert raise to call exception class. Add whitespace.
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user