diff options
| author | Curtis Maloney <curtis@tinbrain.net> | 2015-04-18 00:25:11 +1000 |
|---|---|---|
| committer | Curtis Maloney <curtis@tinbrain.net> | 2015-04-18 23:29:29 +1000 |
| commit | 14ecbd02a337c15ffd0c319d14a56bf21127f42c (patch) | |
| tree | da72b5ed57b5cae0f0eefb489719d1f000b1f9aa /django/utils/functional.py | |
| parent | 36e90d1f45a13f53ce25fdc2d9c04433b835c9af (diff) | |
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.
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 d0be511eaf..f3a36b318d 100644 --- a/django/utils/functional.py +++ b/django/utils/functional.py @@ -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: |
