diff options
| author | Tom <tom@tomforb.es> | 2017-10-13 02:02:04 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-10-13 09:20:13 -0400 |
| commit | abb636c1af7b2fd00a624985f60b7aff07374580 (patch) | |
| tree | 5cae22e50ad86121886a085eb1a12c0c5a3cf599 /django/utils/functional.py | |
| parent | 6c92f711eaf382113e811e43900f4fabd0f95c26 (diff) | |
Improved performance of utils.html.escape().
Diffstat (limited to 'django/utils/functional.py')
| -rw-r--r-- | django/utils/functional.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/django/utils/functional.py b/django/utils/functional.py index 71e5238c1e..af49322559 100644 --- a/django/utils/functional.py +++ b/django/utils/functional.py @@ -1,4 +1,5 @@ import copy +import itertools import operator from functools import total_ordering, wraps @@ -189,7 +190,7 @@ def keep_lazy(*resultclasses): @wraps(func) def wrapper(*args, **kwargs): - for arg in list(args) + list(kwargs.values()): + for arg in itertools.chain(args, kwargs.values()): if isinstance(arg, Promise): break else: |
