Skip to contentSkip to conversation

knotty: Move second event check into a proper block

PATCH New Namhyung Kim 1 participant 1 message Jul 30, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 knotty: Move second event check into a proper block

so that it doesn't check it twice for non-empty events

---
 lib/bb/ui/knotty.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
lib/bb/ui/knotty.py +2 -2
index 77a7082..746dcf4 100644
@@ -321,8 +321,8 @@ def main(server, eventHandler, params, tf = TerminalFilter):
                     break
                 termfilter.updateFooter()
                 event = eventHandler.waitEvent(0.25)
-            if event is None:
-                continue
+                if event is None:
+                    continue
             helper.eventHandler(event)
             if isinstance(event, bb.runqueue.runQueueExitWait):
                 if not main.shutdown:
Signature · 1 line
2.0.0