[elbe-devel] [PATCH 08/28] pylint: pbuilderaction: fix multiple statements per line warning
Torben Hohn
torben.hohn at linutronix.de
Wed Aug 22 11:29:02 CEST 2018
pylint does not like it, when function code starts in the same line
as def.
fix it by indenting properly and adding newline
Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
elbepack/pbuilderaction.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/elbepack/pbuilderaction.py b/elbepack/pbuilderaction.py
index 3bc12269..a161a7bf 100644
--- a/elbepack/pbuilderaction.py
+++ b/elbepack/pbuilderaction.py
@@ -14,8 +14,9 @@ from elbepack.shellhelper import CommandError, system, command_out_stderr
from elbepack.filesystem import TmpdirFilesystem
-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