From b00d8bf474cf5e2850ba83a11b7e372dad4bf119 Mon Sep 17 00:00:00 2001 From: Marcos Dione Date: Mon, 6 Feb 2017 21:44:28 +0100 Subject: [PATCH] Proper version, no bugs, shorter. --- requests/status_codes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requests/status_codes.py b/requests/status_codes.py index a7980ca5..79e5c4e3 100644 --- a/requests/status_codes.py +++ b/requests/status_codes.py @@ -87,5 +87,5 @@ codes = LookupDict(name='status_codes') for code, titles in _codes.items(): for title in titles: setattr(codes, title, code) - if not title.startswith('\\') and not title.strartswith('/'): + if not if not title.startswith(('\\', '/')): setattr(codes, title.upper(), code)