Description of problem: Current code of rh-rhui-tools does not look following popular python coding guidelines that maybe cause decrease of maintainability. Version-Release number of selected component (if applicable): RHUI v3 beta.2 Additional info: I'll upload some PoC patches not tested (unit tests are must for safer refactoring but it looks not unfortunately.)
Created attachment 1243504 [details] Patch removes use of deprecated lang features like reduce, filter, etc. @see https://google.github.io/styleguide/pyguide.html#Deprecated_Language_Features
Created attachment 1243505 [details] Patch simplify true/false statements https://google.github.io/styleguide/pyguide.html#True/False_evaluations
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2019:0149