From 759aaf294ae4c82489f60f4de55890190666b492 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 28 Apr 2018 10:39:59 +0530 Subject: [PATCH] Remove extra level of indirection in creating iterator --- kitty/tabs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/tabs.py b/kitty/tabs.py index 339ed975e..9e38c8992 100644 --- a/kitty/tabs.py +++ b/kitty/tabs.py @@ -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)