]> git.ipfire.org Git - thirdparty/httpx.git/commit
Refactor `httpx/_utils.py` (#1943)
authorYasser Tahiri <yasserth19@gmail.com>
Wed, 9 Feb 2022 12:12:09 +0000 (13:12 +0100)
committerGitHub <noreply@github.com>
Wed, 9 Feb 2022 12:12:09 +0000 (12:12 +0000)
commita4161062501a32ce258e9f990737d494bfe419aa
treee01583bc6a77781fe4a04c0de76e0900f7b09400
parent7d3a5347a9717169c00c73b71ba7c560e9a04443
Refactor `httpx/_utils.py` (#1943)

* 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

Co-authored-by: Tom Christie <tom@tomchristie.com>
httpx/_utils.py