Remove extra level of indirection in creating iterator

This commit is contained in:
Kovid Goyal
2018-04-28 10:39:59 +05:30
parent 9ea0de868c
commit 759aaf294a

View File

@@ -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)