Browse Source

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
pull/375/head
Naelson Douglas C. Oliveira 3 years ago committed by GitHub
parent
commit
757c1ab75e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      bpytop.py

2
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:

Loading…
Cancel
Save