Delete base module not applicable definition.

In base module execute functional has exist repeat definition.
result and result_err use proc.communicate() value, the result
and result_err value '' out of use.

Change-Id: I1e1fc208b30f8bb367171e42cf688255fd9864f9
Signed-off-by: Yuanbin.Chen <cybing4@gmail.com>
This commit is contained in:
Yuanbin.Chen 2018-01-17 22:30:58 +08:00
parent 42f29abb29
commit 69af2ce7ee
1 changed files with 0 additions and 2 deletions

View File

@ -58,8 +58,6 @@ def execute(cmd, action, flags='', params='', fail_ok=False,
if six.PY2:
cmd = cmd.encode('utf-8')
cmd = shlex.split(cmd)
result = ''
result_err = ''
stdout = subprocess.PIPE
stderr = subprocess.STDOUT if merge_stderr else subprocess.PIPE
proc = subprocess.Popen(cmd, stdout=stdout, stderr=stderr)