From 757c1ab75e4c56bbce16ada31971766cf2e6db50 Mon Sep 17 00:00:00 2001 From: "Naelson Douglas C. Oliveira" Date: Wed, 22 Dec 2021 15:55:10 -0300 Subject: [PATCH] Removed a simple consider-using-in pitfall case (#358) * 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 * removed a typo --- bpytop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bpytop.py b/bpytop.py index 3c66015..61eef86 100755 --- a/bpytop.py +++ b/bpytop.py @@ -4827,7 +4827,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: