1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Removed unnecessary list() call in ModelBase.__new__().

Unnecessary since 58ad030d05.
This commit is contained in:
SergBobrovsky
2020-06-10 13:10:36 +03:00
committed by GitHub
parent 037a624120
commit 9bfa6a35f0

View File

@@ -91,7 +91,7 @@ class ModelBase(type):
# method to type.__new__() so that they're properly initialized # method to type.__new__() so that they're properly initialized
# (i.e. __set_name__()). # (i.e. __set_name__()).
contributable_attrs = {} contributable_attrs = {}
for obj_name, obj in list(attrs.items()): for obj_name, obj in attrs.items():
if _has_contribute_to_class(obj): if _has_contribute_to_class(obj):
contributable_attrs[obj_name] = obj contributable_attrs[obj_name] = obj
else: else: