From: Vladlen Y. Koshelev Date: Mon, 18 Feb 2013 20:39:17 +0000 (+0400) Subject: Rename local var so it doesn't shadow the "list" built-in. X-Git-Tag: v3.0.0~104^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a5c267371ebd50b73ab0a29a75465a6cda26154;p=thirdparty%2Ftornado.git Rename local var so it doesn't shadow the "list" built-in. --- diff --git a/tornado/httputil.py b/tornado/httputil.py index 163e30355..94b8ba4f2 100644 --- a/tornado/httputil.py +++ b/tornado/httputil.py @@ -106,8 +106,8 @@ class HTTPHeaders(dict): If a header has multiple values, multiple pairs will be returned with the same name. """ - for name, list in self._as_list.items(): - for value in list: + for name, values in self._as_list.items(): + for value in values: yield (name, value) def parse_line(self, line):