From 93e91536db615f279e6e5776a9bb6470f22228b6 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 4 Sep 2019 13:50:37 +1000 Subject: [PATCH] tools: make an infinite loop more obvious in the code Nothing sets "stop", so we might as well make it a while True Signed-off-by: Peter Hutterer --- tools/libinput-replay | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/libinput-replay b/tools/libinput-replay index 642e8024..f41ef18f 100755 --- a/tools/libinput-replay +++ b/tools/libinput-replay @@ -157,8 +157,7 @@ def loop(args, recording): d['__uinput'] = uinput # cheaper to hide it in the dict then work around it d['__index'] = idx - stop = False - while not stop: + while True: input('Hit enter to start replaying') processes = []