From c9455a7484fa5ead1a90e40b78512867b4285020 Mon Sep 17 00:00:00 2001 From: Alexandru Damian Date: Tue, 18 Aug 2015 17:28:57 +0100 Subject: bitbake: toaster: fix pylint errors Prompted by issues discovered during running pylint on the toaster sources, this patch fixes: * missing import in toaster ui * improper call of function in toaster ui (logger.debug) * improper function definitions in bbcontroller * invalid references to objects in bldcontrol.models * proper initialization of object fields in ToasterTables Also inhibiting specific pylint errors in files where the problems are mis-identified. (Bitbake rev: 1c71955c416fb68455f7f70669aba4202c411807) Signed-off-by: Alexandru Damian Signed-off-by: Michael Wood Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/toasterui.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bitbake/lib/bb/ui/toasterui.py') diff --git a/bitbake/lib/bb/ui/toasterui.py b/bitbake/lib/bb/ui/toasterui.py index f30f89e409..767bfabe31 100644 --- a/bitbake/lib/bb/ui/toasterui.py +++ b/bitbake/lib/bb/ui/toasterui.py @@ -21,6 +21,7 @@ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. from __future__ import division +import sys try: import bb except RuntimeError as exc: @@ -255,10 +256,10 @@ def main(server, eventHandler, params ): # we start a new build info if buildinfohelper.brbe is not None: - logger.debug(1, "ToasterUI under BuildEnvironment management - exiting after the build") + logger.debug("ToasterUI under BuildEnvironment management - exiting after the build") server.terminateServer() else: - logger.debug(1, "ToasterUI prepared for new build") + logger.debug("ToasterUI prepared for new build") errors = 0 warnings = 0 taskfailures = [] -- cgit v1.2.3-54-g00ecf