From: Kenneth Reitz Date: Sun, 14 Aug 2011 14:43:02 +0000 (-0400) Subject: status codes fix X-Git-Tag: v0.6.0~67 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ce1945c78025af0ec235d70d8cb501bfe7623145;p=services%2Fpython-requests.git status codes fix --- diff --git a/requests/status_codes.py b/requests/status_codes.py index 299b903..ae7241c 100644 --- a/requests/status_codes.py +++ b/requests/status_codes.py @@ -8,7 +8,7 @@ _codes = { 102: ('processing',), 103: ('checkpoint',), 122: ('uri_too_long', 'request_uri_too_long'), - 200: ('ok', 'okay', 'all_ok', 'all_okay', 'all_good', r'\o/'), + 200: ('ok', 'okay', 'all_ok', 'all_okay', 'all_good', '\\o/'), 201: ('created',), 202: ('accepted',), 203: ('non_authoritative_info', 'non_authoritative_information'), @@ -71,5 +71,5 @@ codes = LookupDict(name='status_codes') for (code, titles) in _codes.items(): for title in titles: setattr(codes, title, code) - if not title.startswith(r'\'): + if not title.startswith('\\'): setattr(codes, title.upper(), code) \ No newline at end of file