Refactor `httpx/_utils.py` (#1943)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
* Removes unnecessary call to keys() when iterating over a dictionary * Simplify conditionals into a form like a switch statement * Merge else clause's nested if statement into elif * Update httpx/_utils.py * Update httpx/_utils.py
authored by Yasser Tahiri · committed by GitHub · parent 7d3a534 · Browse files · 1 file+11 added−12 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Trailers
- Co-authored-by: Tom Christie <tom@tomchristie.com>
Diff stats
1 file+11 added−12 removed
- other:+11 added−12 removed