commit: fc437d3433528c47470f13e62dba64813acee754 Author: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com> AuthorDate: Thu Jan 22 08:44:34 2026 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu Jan 22 19:06:28 2026 +0000 URL: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=fc437d34
enalyze: black cleanup Signed-off-by: Brian Dolbec <brian.dolbec <AT> gmail.com> Part-of: https://github.com/gentoo/gentoolkit/pull/60 Signed-off-by: Sam James <sam <AT> gentoo.org> pym/gentoolkit/enalyze/__init__.py | 2 -- pym/gentoolkit/enalyze/analyze.py | 2 +- pym/gentoolkit/enalyze/output.py | 6 +++--- pym/gentoolkit/enalyze/rebuild.py | 1 - 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/pym/gentoolkit/enalyze/__init__.py b/pym/gentoolkit/enalyze/__init__.py index 875de2e..0861559 100644 --- a/pym/gentoolkit/enalyze/__init__.py +++ b/pym/gentoolkit/enalyze/__init__.py @@ -7,7 +7,6 @@ """Gentoo's installed packages analysis and repair tool""" - # Move to Imports section after Python 2.6 is stable @@ -42,7 +41,6 @@ from gentoolkit.base import ( print_help, ) - NAME_MAP = {"a": "analyze", "r": "rebuild"} FORMATTED_OPTIONS = ( diff --git a/pym/gentoolkit/enalyze/analyze.py b/pym/gentoolkit/enalyze/analyze.py index c64465d..e541e15 100644 --- a/pym/gentoolkit/enalyze/analyze.py +++ b/pym/gentoolkit/enalyze/analyze.py @@ -485,7 +485,7 @@ class Analyse(ModuleBase): print(" cat/pkg-ver USE Flags") # blankline = lambda: None for cpv in cpvs: - (flag_plus, flag_neg, unset) = flags.analyse_cpv(cpv) + flag_plus, flag_neg, unset = flags.analyse_cpv(cpv) if self.options["unset"]: self.printer( cpv, "", (sorted(flag_plus), sorted(flag_neg), sorted(unset)) diff --git a/pym/gentoolkit/enalyze/output.py b/pym/gentoolkit/enalyze/output.py index b9d937e..3fc4d73 100644 --- a/pym/gentoolkit/enalyze/output.py +++ b/pym/gentoolkit/enalyze/output.py @@ -141,7 +141,7 @@ class AnalysisPrinter(CpvValueWrapper): """Determines the stats for key, formats it and calls the pre-determined print function """ - (plus, minus, cleaned) = flags + plus, minus, cleaned = flags _plus = [] _minus = [] _cleaned = [] @@ -162,7 +162,7 @@ class AnalysisPrinter(CpvValueWrapper): def print_pkg_verbose(self, cpv, flags): """Verbosely prints the pkg's use flag info.""" - (plus, minus, unset) = flags + plus, minus, unset = flags _flags = [] for flag in plus: _flags.append(pp.useflag((flag), True)) @@ -175,7 +175,7 @@ class AnalysisPrinter(CpvValueWrapper): def print_pkg_quiet(self, cpv, flags): """Verbosely prints the pkg's use flag info.""" - (plus, minus, unset) = flags + plus, minus, unset = flags _flags = [] for flag in plus: _flags.append(pp.useflag((flag), True)) diff --git a/pym/gentoolkit/enalyze/rebuild.py b/pym/gentoolkit/enalyze/rebuild.py index f4a348a..5863276 100644 --- a/pym/gentoolkit/enalyze/rebuild.py +++ b/pym/gentoolkit/enalyze/rebuild.py @@ -9,7 +9,6 @@ """Provides a rebuild file of USE flags or keywords used and by what packages according to the Installed package database""" - import os import gentoolkit
