forked from aio-libs/aiohttp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix Issue aio-libs#1861: Client request timeout parameters are incons…
…istent Use sentinel (instead of None) for checking the arguments passed. aiohttp/client.py: * ClientSession.__init__(): * set the `read_timeout` argument default value to `sentinel` * if it is equal to `sentinel` during the call, set it to the value of `DEFAULT_TIMEOUT` * ClientSession._request(): * set the `timeout` argument default value to `sentinel` * if it is equal to `sentinel` during the call, set it to the value of `self.read_timeout` Update documentation to match the consistent usage of timeouts. Update tests (excluding the confusing `timeout=None` argument usage).
- Loading branch information
1 parent
9522ba6
commit ba9201e
Showing
3 changed files
with
16 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters