Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fbd7994

Browse files
committed
Convert raise to call exception class. Add whitespace.
1 parent 4e54730 commit fbd7994

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/httplib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ def _set_hostport(self, host, port):
368368
try:
369369
port = int(host[i+1:])
370370
except ValueError:
371-
raise InvalidURL, "nonnumeric port: '%s'"%host[i+1:]
371+
raise InvalidURL("nonnumeric port: '%s'" % host[i+1:])
372372
host = host[:i]
373373
else:
374374
port = self.default_port

0 commit comments

Comments
 (0)