Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

There's no need to do `list(dict.keys())` list(dict)` is enough.

  • Loading branch information...
commit a351e383b664d4b2da6d49a50c9a3c37ae2c5848 1 parent 4e7f04c
Alex Gaynor alex authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/admin/views/main.py
2  django/contrib/admin/views/main.py
View
@@ -148,7 +148,7 @@ def get_query_string(self, new_params=None, remove=None):
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():
Please sign in to comment.
Something went wrong with that request. Please try again.