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
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ class BaseContext:
return repr(self.dicts) return repr(self.dicts)
def __iter__(self): def __iter__(self):
yield from reversed(self.dicts) return reversed(self.dicts)
def push(self, *args, **kwargs): def push(self, *args, **kwargs):
dicts = [] dicts = []