diff options
| author | Alexandru Damian <alexandru.damian@intel.com> | 2015-08-18 17:28:57 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-08-19 18:05:55 +0100 |
| commit | c9455a7484fa5ead1a90e40b78512867b4285020 (patch) | |
| tree | 152a114ce3e7e528d3b3c0331c39e737b6bafd7d /bitbake/lib/bb/ui | |
| parent | 07b58c97342d4f2efff80891981e8ee63dd198d0 (diff) | |
| download | poky-c9455a7484fa5ead1a90e40b78512867b4285020.tar.gz | |
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 <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 'bitbake/lib/bb/ui')
| -rw-r--r-- | bitbake/lib/bb/ui/toasterui.py | 5 |
1 files changed, 3 insertions, 2 deletions
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 @@ | |||
| 21 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | 21 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 22 | 22 | ||
| 23 | from __future__ import division | 23 | from __future__ import division |
| 24 | import sys | ||
| 24 | try: | 25 | try: |
| 25 | import bb | 26 | import bb |
| 26 | except RuntimeError as exc: | 27 | except RuntimeError as exc: |
| @@ -255,10 +256,10 @@ def main(server, eventHandler, params ): | |||
| 255 | # we start a new build info | 256 | # we start a new build info |
| 256 | if buildinfohelper.brbe is not None: | 257 | if buildinfohelper.brbe is not None: |
| 257 | 258 | ||
| 258 | logger.debug(1, "ToasterUI under BuildEnvironment management - exiting after the build") | 259 | logger.debug("ToasterUI under BuildEnvironment management - exiting after the build") |
| 259 | server.terminateServer() | 260 | server.terminateServer() |
| 260 | else: | 261 | else: |
| 261 | logger.debug(1, "ToasterUI prepared for new build") | 262 | logger.debug("ToasterUI prepared for new build") |
| 262 | errors = 0 | 263 | errors = 0 |
| 263 | warnings = 0 | 264 | warnings = 0 |
| 264 | taskfailures = [] | 265 | taskfailures = [] |
