From a351e383b664d4b2da6d49a50c9a3c37ae2c5848 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Tue, 14 Aug 2012 06:57:04 -0700 Subject: [PATCH] There's no need to do `list(dict.keys())` list(dict)` is enough. --- django/contrib/admin/views/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/admin/views/main.py b/django/contrib/admin/views/main.py index 4ff1a9cce5..30074f1648 100644 --- a/django/contrib/admin/views/main.py +++ b/django/contrib/admin/views/main.py @@ -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():