mirror of
https://github.com/python/cpython.git
synced 2025-09-25 01:43:11 +00:00
Issue #16714: use 'raise' exceptions, don't 'throw'.
Patch by Serhiy Storchaka.
This commit is contained in:
parent
80ab6c53c6
commit
4bb142b1b7
34 changed files with 52 additions and 52 deletions
|
@ -1068,7 +1068,7 @@ class HTTP:
|
|||
if port == 0:
|
||||
port = None
|
||||
|
||||
# Note that we may pass an empty string as the host; this will throw
|
||||
# Note that we may pass an empty string as the host; this will raise
|
||||
# an error when we attempt to connect. Presumably, the client code
|
||||
# will call connect before then, with a proper host.
|
||||
self._setup(self._connection_class(host, port, strict))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue