Removed unnecessary list() call in ModelBase.__new__().
Unnecessary since 58ad030d05
.
This commit is contained in:
parent
037a624120
commit
9bfa6a35f0
|
@ -91,7 +91,7 @@ class ModelBase(type):
|
|||
# method to type.__new__() so that they're properly initialized
|
||||
# (i.e. __set_name__()).
|
||||
contributable_attrs = {}
|
||||
for obj_name, obj in list(attrs.items()):
|
||||
for obj_name, obj in attrs.items():
|
||||
if _has_contribute_to_class(obj):
|
||||
contributable_attrs[obj_name] = obj
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue