diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py index 881df9e5fb..2fff1b3669 100644 --- a/bitbake/lib/bb/ui/knotty.py +++ b/bitbake/lib/bb/ui/knotty.py @@ -24,6 +24,12 @@ import atexit from itertools import groupby from bb.ui import uihelper +import bb.build +import bb.command +import bb.cooker +import bb.event +import bb.runqueue +import bb.utils featureSet = [bb.cooker.CookerFeatures.SEND_SANITYEVENTS, bb.cooker.CookerFeatures.BASEDATASTORE_TRACKING] @@ -103,7 +109,7 @@ def new_progress(msg, maxval): return NonInteractiveProgress(msg, maxval) def pluralise(singular, plural, qty): - if(qty == 1): + if qty == 1: return singular % qty else: return plural % qty @@ -112,6 +118,7 @@ def pluralise(singular, plural, qty): class InteractConsoleLogFilter(logging.Filter): def __init__(self, tf): self.tf = tf + super().__init__() def filter(self, record): if record.levelno == bb.msg.BBLogFormatter.NOTE and (record.msg.startswith("Running") or record.msg.startswith("recipe ")): @@ -569,9 +576,9 @@ def main(server, eventHandler, params, tf = TerminalFilter): loglink = os.path.join(consolelogdirname, 'console-latest.log') bb.utils.remove(loglink) try: - os.symlink(os.path.basename(consolelogfile), loglink) + os.symlink(os.path.basename(consolelogfile), loglink) except OSError: - pass + pass # Add the logging domains specified by the user on the command line for (domainarg, iterator) in groupby(params.debug_domains):