[elbe-devel] [PATCH 07/25] pylint: initvmaction: reformat cmd_exists, so that pylint doe not complain

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


pylint complains:
elbepack/initvmaction.py:31: [C0321(multiple-statements), cmd_exists] More than one statement on a single line

fix it by inserting a newline behind cmd_exists(x):

Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
 elbepack/initvmaction.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/elbepack/initvmaction.py b/elbepack/initvmaction.py
index cb7ec866..20a9cb62 100644
--- a/elbepack/initvmaction.py
+++ b/elbepack/initvmaction.py
@@ -28,8 +28,9 @@ import datetime
 import libvirt
 
 
-def cmd_exists(x): return any(os.access(os.path.join(path, x), os.X_OK)
-                              for path in os.environ["PATH"].split(os.pathsep))
+def cmd_exists(x):
+    return any(os.access(os.path.join(path, x), os.X_OK)
+            for path in os.environ["PATH"].split(os.pathsep))
 
 # Create download directory with timestamp,
 # if necessary
-- 
2.11.0




More information about the elbe-devel mailing list