Skip to content
Myr

Merge pull request #2767 from ueg1990/master

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Remove redundant function call list when iterating over status codes

authored by Ian Cordasco · committed by Ian Cordasco · parents 56ecdeb, 96e8e8b · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:requests/status_codes.py+1 added-1 removed
80 unmodified lines
81}8283codes = LookupDict(name='status_codes')8485for (code, titles) in list(_codes.items()):85for code, titles in _codes.items():86 for title in titles:87 setattr(codes, title, code)88 if not title.startswith('\\'):89 setattr(codes, title.upper(), code)