mirror of
https://github.com/django/django.git
synced 2025-12-02 00:01:29 +00:00
Fixed #20989 -- Removed explicit list comprehension inside dict() and tuple()
Thanks jeroen.pulles at redslider.net for the suggestion and helper script.
This commit is contained in:
parent
f19a3669b8
commit
c7d0ff0cad
23 changed files with 38 additions and 38 deletions
|
|
@ -762,7 +762,7 @@ class Query(object):
|
|||
# 2. Rename the alias in the internal table/alias datastructures.
|
||||
for ident, aliases in self.join_map.items():
|
||||
del self.join_map[ident]
|
||||
aliases = tuple([change_map.get(a, a) for a in aliases])
|
||||
aliases = tuple(change_map.get(a, a) for a in aliases)
|
||||
ident = (change_map.get(ident[0], ident[0]),) + ident[1:]
|
||||
self.join_map[ident] = aliases
|
||||
for old_alias, new_alias in six.iteritems(change_map):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue