[elbe-devel] [PATCH 04/40] pylint: fix error by removing uncalled code

Manuel Traut manut at linutronix.de
Fri Sep 14 13:56:16 CEST 2018


initvmaction.py:49, PyLint, Priority: High
Undefined variable 'self'

..by removing the never called code

Signed-off-by: Manuel Traut <manut at linutronix.de>
---
 elbepack/initvmaction.py | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/elbepack/initvmaction.py b/elbepack/initvmaction.py
index 6d687216..8f9929cd 100644
--- a/elbepack/initvmaction.py
+++ b/elbepack/initvmaction.py
@@ -45,11 +45,6 @@ def ensure_outdir(opt):
     print("Saving generated Files to %s" % opt.outdir)
 
 
-def ensure_initvm_defined():
-    if self.initvm is None:
-        sys.exit(20)
-
-
 class InitVMError(Exception):
     def __init__(self, msg):
         Exception.__init__(self, msg)
-- 
2.19.0.rc2




More information about the elbe-devel mailing list