mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
Removed cases of six.iter* wrapped in a list()
There's absolutely no advantage [and a mild performance hit] to using six.iter* in these cases.
This commit is contained in:
@@ -184,7 +184,7 @@ def allow_lazy(func, *resultclasses):
|
||||
|
||||
@wraps(func)
|
||||
def wrapper(*args, **kwargs):
|
||||
for arg in list(args) + list(six.itervalues(kwargs)):
|
||||
for arg in list(args) + list(kwargs.values()):
|
||||
if isinstance(arg, Promise):
|
||||
break
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user