commit: 9b9711bf1b1111d0bdc24e4be6fc226758738d7a Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> AuthorDate: Sun Jul 10 16:16:40 2022 +0000 Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org> CommitDate: Sun Jul 10 16:16:40 2022 +0000 URL: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=9b9711bf
equery depends: Fix a traceback due to UnboundLocalError: File "/home/brian/Dev/git/gentoolkit/pym/gentoolkit/equery/depends.py" , line 106, in format_depend self.print_fn(indent, str(dep.cpv), use_conditional, formatted_dep) UnboundLocalError: local variable 'formatted_dep' referenced before assignment The statement appears to be added as preliminary debug info. Removed it. Signed-off-by: Brian Dolbec <dolsen <AT> gentoo.org> pym/gentoolkit/equery/depends.py | 1 - 1 file changed, 1 deletion(-) diff --git a/pym/gentoolkit/equery/depends.py b/pym/gentoolkit/equery/depends.py index f65e846..fe56148 100644 --- a/pym/gentoolkit/equery/depends.py +++ b/pym/gentoolkit/equery/depends.py @@ -103,7 +103,6 @@ class DependPrinter: pkg = Package(str(dep.cpv)) self.print_formated(pkg) else: - self.print_fn(indent, str(dep.cpv), use_conditional, formatted_dep) if mdep.use_conditional: use_conditional = " & ".join( pp.useflag(u) for u in mdep.use_conditional.split()