diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2017-05-27 16:08:46 -0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-05-27 19:08:46 -0400 |
| commit | 21046e77734278cea871dce922220bf29aa5b7b4 (patch) | |
| tree | e0820850a3d058c35307916da793668f7e5c48b3 /django/utils/functional.py | |
| parent | 2a5708a304cf337dbf556e2bd87a930079f8f766 (diff) | |
Fixed #28249 -- Removed unnecessary dict.keys() calls.
iter(dict) is equivalent to iter(dict.keys()).
Diffstat (limited to 'django/utils/functional.py')
| -rw-r--r-- | django/utils/functional.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/functional.py b/django/utils/functional.py index a1ab642e2d..05c17d6e64 100644 --- a/django/utils/functional.py +++ b/django/utils/functional.py @@ -82,7 +82,7 @@ def lazy(func, *resultclasses): def __prepare_class__(cls): for resultclass in resultclasses: for type_ in resultclass.mro(): - for method_name in type_.__dict__.keys(): + for method_name in type_.__dict__: # All __promise__ return the same wrapper method, they # look up the correct implementation when called. if hasattr(cls, method_name): |
