mirror of
https://github.com/django/django.git
synced 2025-09-16 23:45:38 +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:
parent
36e90d1f45
commit
14ecbd02a3
10 changed files with 14 additions and 17 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue