diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2014-12-06 13:00:09 -0800 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-12-08 07:58:23 -0500 |
| commit | 4468c08d70b5b722f3ebd4872909e56580ec7d68 (patch) | |
| tree | 3da12d757bc9b586df4ba39da20b8793abcae76e /django/http/request.py | |
| parent | b327a614eb7d885441c6a2575e10b70ac1352aae (diff) | |
Fixed #23968 -- Replaced list comprehension with generators and dict comprehension
Diffstat (limited to 'django/http/request.py')
| -rw-r--r-- | django/http/request.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/http/request.py b/django/http/request.py index 0f085d57d5..ea32574c68 100644 --- a/django/http/request.py +++ b/django/http/request.py @@ -458,8 +458,8 @@ class QueryDict(MultiValueDict): encode = lambda k, v: urlencode({k: v}) for k, list_ in self.lists(): k = force_bytes(k, self.encoding) - output.extend([encode(k, force_bytes(v, self.encoding)) - for v in list_]) + output.extend(encode(k, force_bytes(v, self.encoding)) + for v in list_) return '&'.join(output) |
