Simplified BaseContext.__iter__().
This commit is contained in:
parent
e26b780a24
commit
529c3f264d
|
@ -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 = []
|
||||||
|
|
Loading…
Reference in New Issue