summaryrefslogtreecommitdiff
path: root/django/template
diff options
context:
space:
mode:
authorSergey Fedoseev <fedoseev.sergey@gmail.com>2018-07-11 18:12:50 +0500
committerTim Graham <timograham@gmail.com>2018-07-11 09:12:50 -0400
commit529c3f264d99fff0129cb6afbe4be2eb11d8a501 (patch)
tree9cd9dbe651aae6d76ce0a80e1e37cc3a0ca439af /django/template
parente26b780a24302ea0589a2e77b634d280d324474e (diff)
Simplified BaseContext.__iter__().
Diffstat (limited to 'django/template')
-rw-r--r--django/template/context.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/template/context.py b/django/template/context.py
index 8218e86491..8f349a3a96 100644
--- a/django/template/context.py
+++ b/django/template/context.py
@@ -43,7 +43,7 @@ class BaseContext:
return repr(self.dicts)
def __iter__(self):
- yield from reversed(self.dicts)
+ return reversed(self.dicts)
def push(self, *args, **kwargs):
dicts = []