From 96e8e8b92f177b3672dc5566a1e7cd010c872ccf Mon Sep 17 00:00:00 2001 From: Usman Ehtesham Gul Date: Thu, 10 Sep 2015 12:59:39 -0400 Subject: [PATCH] Remove redundant function call list when iterating over status codes --- 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 e0887f21..1db7fc04 100644 --- a/requests/status_codes.py +++ b/requests/status_codes.py @@ -82,7 +82,7 @@ _codes = { codes = LookupDict(name='status_codes') -for (code, titles) in list(_codes.items()): +for code, titles in _codes.items(): for title in titles: setattr(codes, title, code) if not title.startswith('\\'):