1
0
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:
Alex Gaynor 2012-08-14 06:57:04 -07:00
parent 4e7f04cdad
commit a351e383b6

View File

@ -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():