[elbe-devel] [PATCH 15/25] pylint: shellhelper: call command_out_stderr() in system_out_stderr()

Torben Hohn torben.hohn at linutronix.de
Wed Aug 22 10:42:16 CEST 2018


pylint complains:
elbepack/shellhelper.py|64| [E0632(unbalanced-tuple-unpacking), system_out_stderr] Possible unbalanced tuple unpacking with sequence defined at line 39: left side has 3 label(s), right side has 2 value(s)

call command_out_stderr() instead of command_out(), which does not
return stderr.

Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
 elbepack/shellhelper.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elbepack/shellhelper.py b/elbepack/shellhelper.py
index 674f7fa7..364a0ee7 100644
--- a/elbepack/shellhelper.py
+++ b/elbepack/shellhelper.py
@@ -61,7 +61,7 @@ def command_out_stderr(cmd, stdin=None):
 
 
 def system_out_stderr(cmd, stdin=None, allow_fail=False):
-    code, out, err = command_out(cmd, stdin)
+    code, out, err = command_out_stderr(cmd, stdin)
 
     if code != 0:
         if not allow_fail:
-- 
2.11.0




More information about the elbe-devel mailing list