mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-06 08:01:58 +02:00
Remove extra level of indirection in creating iterator
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user