mirror of
https://github.com/django/django.git
synced 2024-12-25 10:35:48 +00:00
There's no need to do list(dict.keys())
list(dict)` is enough.
This commit is contained in:
parent
4e7f04cdad
commit
a351e383b6
@ -148,7 +148,7 @@ class ChangeList(object):
|
||||
if remove is None: remove = []
|
||||
p = self.params.copy()
|
||||
for r in remove:
|
||||
for k in list(p.keys()):
|
||||
for k in list(p):
|
||||
if k.startswith(r):
|
||||
del p[k]
|
||||
for k, v in new_params.items():
|
||||
|
Loading…
Reference in New Issue
Block a user