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
1 changed files with 1 additions and 1 deletions

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