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 @@ def matches(self, field, pat):
|
|||
return False
|
||||
|
||||
def __iter__(self):
|
||||
yield from iter(self.windows)
|
||||
return iter(self.windows)
|
||||
|
||||
def __len__(self):
|
||||
return len(self.windows)
|
||||
|
|
|
|||
Loading…
Reference in a new issue