mirror of
https://github.com/django/django.git
synced 2024-12-26 02:56:25 +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 = []
|
if remove is None: remove = []
|
||||||
p = self.params.copy()
|
p = self.params.copy()
|
||||||
for r in remove:
|
for r in remove:
|
||||||
for k in list(p.keys()):
|
for k in list(p):
|
||||||
if k.startswith(r):
|
if k.startswith(r):
|
||||||
del p[k]
|
del p[k]
|
||||||
for k, v in new_params.items():
|
for k, v in new_params.items():
|
||||||
|
Loading…
Reference in New Issue
Block a user