mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-21 04:32:05 +00:00
Remove extra level of indirection in creating iterator
This commit is contained in:
parent
9ea0de868c
commit
759aaf294a
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue