Remove extra level of indirection in creating iterator
This commit is contained in:
parent
9ea0de868c
commit
759aaf294a
@ -227,7 +227,7 @@ class Tab: # {{{
|
||||
return False
|
||||
|
||||
def __iter__(self):
|
||||
yield from iter(self.windows)
|
||||
return iter(self.windows)
|
||||
|
||||
def __len__(self):
|
||||
return len(self.windows)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user