1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Simplified BaseContext.__iter__().

This commit is contained in:
Sergey Fedoseev
2018-07-11 18:12:50 +05:00
committed by Tim Graham
parent e26b780a24
commit 529c3f264d

View File

@@ -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 = []