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
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

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)