Skip to content
Myr

\o/

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 9469b4b · Browse files · 1 file+3 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+3 added−2 removed

  • other:+3 added−2 removed

1 file+3 added−2 removed

modified:requests/status_codes.py+3 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', '\o/'),11 200: ('ok', 'okay', 'all_ok', 'all_okay', 'all_good', r'\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 setattr(codes, title.upper(), code)75 setattr(codes, title.upper(), code)