Skip to content
Myr

status codes fix

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

authored by Kenneth Reitz · committed by Kenneth Reitz · parent f52a413 · Browse files · 1 file+2 added−2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:requests/status_codes.py+2 added-2 removed
6 unmodified lines
7 101: ('switching_protocols',),8 102: ('processing',),9 103: ('checkpoint',),10 122: ('uri_too_long', 'request_uri_too_long'),11 200: ('ok', 'okay', 'all_ok', 'all_okay', 'all_good', r'\o/'),11 200: ('ok', 'okay', 'all_ok', 'all_okay', 'all_good', '\\o/'),12 201: ('created',),13 202: ('accepted',),14 203: ('non_authoritative_info', 'non_authoritative_information'),15 204: ('no_content',),
54 unmodified lines
7071for (code, titles) in _codes.items():72 for title in titles:73 setattr(codes, title, code)74 if not title.startswith(r'\'):74 if not title.startswith('\\'):75 setattr(codes, title.upper(), code)