[elbe-devel] [PATCH 06/25] pylint: pbuilderaction: remove unused wdfs argument and import
Torben Hohn
torben.hohn at linutronix.de
Wed Aug 22 10:42:07 CEST 2018
pylint complains:
elbepack/pbuilderaction.py:24: [W0621(redefined-outer-name), ensure_outdir] Redefining name 'wdfs' from outer scope (line 11)
elbepack/pbuilderaction.py:24: [W0613(unused-argument), ensure_outdir] Unused argument 'wdfs'
fix it by removing the argument and the import
Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
elbepack/pbuilderaction.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/elbepack/pbuilderaction.py b/elbepack/pbuilderaction.py
index 4058356c..f6656050 100644
--- a/elbepack/pbuilderaction.py
+++ b/elbepack/pbuilderaction.py
@@ -8,7 +8,7 @@ from __future__ import print_function
from elbepack.directories import elbe_exe
from elbepack.shellhelper import CommandError, system, command_out_stderr
-from elbepack.filesystem import wdfs, TmpdirFilesystem
+from elbepack.filesystem import TmpdirFilesystem
import sys
import os
@@ -21,7 +21,7 @@ def cmd_exists(x): return any(os.access(os.path.join(path, x), os.X_OK)
# if necessary
-def ensure_outdir(wdfs, opt):
+def ensure_outdir(opt):
if opt.outdir is None:
opt.outdir = ".."
@@ -275,7 +275,7 @@ class BuildAction(PBuilderAction):
print("Getting generated Files")
print("")
- ensure_outdir(wdfs, opt)
+ ensure_outdir(opt)
try:
system(
--
2.11.0
More information about the elbe-devel
mailing list