aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/ui/toasterui.py
diff options
context:
space:
mode:
authorAlexandru Damian <alexandru.damian@intel.com>2015-08-18 17:28:57 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-19 18:04:08 +0100
commit1c71955c416fb68455f7f70669aba4202c411807 (patch)
treebb00854539e40d267d5205deb9f5100fb34c6395 /lib/bb/ui/toasterui.py
parenta740c17efc0ccc9f89a428ead08f9739af3c6de4 (diff)
downloadbitbake-1c71955c416fb68455f7f70669aba4202c411807.tar.gz
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. Signed-off-by: Alexandru Damian <alexandru.damian@intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/ui/toasterui.py')
-rw-r--r--lib/bb/ui/toasterui.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/bb/ui/toasterui.py b/lib/bb/ui/toasterui.py
index f30f89e40..767bfabe3 100644
--- a/lib/bb/ui/toasterui.py
+++ b/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 = []