From 6ec5a3d6a4432a5f3dac2df6041e14d1ace98c5d Mon Sep 17 00:00:00 2001 From: naelsondouglas Date: Fri, 15 Oct 2021 02:48:40 -0300 Subject: [PATCH] Removed a simple pitfall case where the code was incurring into the Pylint error R1714 consider-using-in https://github.com/vald-phoenix/pylint-errors/blob/master/plerr/errors/refactoring/R1714.md --- bpytop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bpytop.py b/bpytop.py index 55c99ad..6c74857 100755 --- a/bpytop.py +++ b/bpytop.py @@ -4807,7 +4807,7 @@ class Menu: elif key in ["escape", "o", "M", "f2"]: cls.close = True break - elif key == "tab" or (key == "down" and selected_int == len(option_items) - 1 and (page == pages or pages == 0)): + elif key == "tab" or (key == "down" and selected_int == len(option_items) - 1 and page in [0, pages]: if cat_int == len(categories) - 1: cat_int = 0 else: