diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-09-02 13:58:16 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-02 23:46:52 +0100 |
commit | 872cb0d5d79b26f34e6b35d7be8870d245021be4 (patch) | |
tree | 37cc334e9769e40e1df60e777e934ee7a404282f /scripts/lib/wic/utils/runner.py | |
parent | af0a6d547a5a3efefdd4900f7079dfd10b85342d (diff) | |
download | openembedded-core-872cb0d5d79b26f34e6b35d7be8870d245021be4.tar.gz openembedded-core-872cb0d5d79b26f34e6b35d7be8870d245021be4.tar.bz2 openembedded-core-872cb0d5d79b26f34e6b35d7be8870d245021be4.zip |
wic: fix short variable names
Made short variable names longer and more readable.
Fixed pylint warnings "Invalid variable name" and
"Invalid argument name".
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/utils/runner.py')
-rw-r--r-- | scripts/lib/wic/utils/runner.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/scripts/lib/wic/utils/runner.py b/scripts/lib/wic/utils/runner.py index f6a1d0828c..7431917ff0 100644 --- a/scripts/lib/wic/utils/runner.py +++ b/scripts/lib/wic/utils/runner.py @@ -62,13 +62,13 @@ def runtool(cmdln_or_args, catch=1): serr = subprocess.STDOUT try: - p = subprocess.Popen(cmdln_or_args, stdout=sout, - stderr=serr, shell=shell) - (sout, serr) = p.communicate() + process = subprocess.Popen(cmdln_or_args, stdout=sout, + stderr=serr, shell=shell) + (sout, serr) = process.communicate() # combine stdout and stderr, filter None out out = ''.join(filter(None, [sout, serr])) - except OSError, e: - if e.errno == 2: + except OSError, err: + if err.errno == 2: # [Errno 2] No such file or directory msger.error('Cannot run command: %s, lost dependency?' % cmd) else: @@ -77,12 +77,12 @@ def runtool(cmdln_or_args, catch=1): if catch != 3: os.close(dev_null) - return (p.returncode, out) + return (process.returncode, out) def show(cmdln_or_args): # show all the message using msger.verbose - rc, out = runtool(cmdln_or_args, catch=3) + rcode, out = runtool(cmdln_or_args, catch=3) if isinstance(cmdln_or_args, list): cmd = ' '.join(cmdln_or_args) @@ -100,7 +100,7 @@ def show(cmdln_or_args): msg += '\n +----------------' msger.verbose(msg) - return rc + return rcode def outs(cmdln_or_args, catch=1): # get the outputs of tools |