Skip to content
Permalink
Browse files

west: Fix unused import and variable

Making a clean slate for a pylint test in CI.

'_' is a common name for non-problematic unused variables in Python.
pylint knows not to flag it.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
  • Loading branch information...
ulfalizer authored and nashif committed May 7, 2019
1 parent 2c86cac commit 859c4ed2cd41aa0ef5b5a29b3d2c64199b252ee1
Showing with 1 addition and 3 deletions.
  1. +1 −1 scripts/west_commands/zcmake.py
  2. +0 −2 scripts/west_commands/zephyr_ext_common.py
@@ -57,7 +57,7 @@ def run_cmake(args, cwd=None, capture_output=False, dry_run=False):

log.dbg('Running CMake:', quote_sh_list(cmd), level=log.VERBOSE_NORMAL)
p = subprocess.Popen(cmd, **kwargs)
out, err = p.communicate()
out, _ = p.communicate()
if p.returncode == 0:
if out:
return out.decode(sys.getdefaultencoding()).splitlines()
@@ -8,8 +8,6 @@
commands are in run_common -- that's for common code used by
commands which specifically execute runners.'''

import os

from west import log
from west.commands import WestCommand

0 comments on commit 859c4ed

Please sign in to comment.
You can’t perform that action at this time.