From 47378164ef18323a96b443db4a415057bc3d92ce Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sat, 13 Aug 2011 14:55:41 -0400 Subject: [PATCH] \o/ --- requests/status_codes.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/requests/status_codes.py b/requests/status_codes.py index e9a72fc..299b903 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', '\o/'), + 200: ('ok', 'okay', 'all_ok', 'all_okay', 'all_good', r'\o/'), 201: ('created',), 202: ('accepted',), 203: ('non_authoritative_info', 'non_authoritative_information'), @@ -71,4 +71,5 @@ codes = LookupDict(name='status_codes') for (code, titles) in _codes.items(): for title in titles: setattr(codes, title, code) - setattr(codes, title.upper(), code) \ No newline at end of file + if not title.startswith(r'\'): + setattr(codes, title.upper(), code) \ No newline at end of file -- 2.34.1