[elbe-devel] [PATCH 04/40] pylint: fix error by removing uncalled code
Torben Hohn
torben.hohn at linutronix.de
Thu Sep 20 11:05:20 CEST 2018
On Fri, Sep 14, 2018 at 01:56:16PM +0200, Manuel Traut wrote:
> initvmaction.py:49, PyLint, Priority: High
> Undefined variable 'self'
>
> ..by removing the never called code
>
> Signed-off-by: Manuel Traut <manut at linutronix.de>
Reviewed-by: Torben Hohn <torben.hohn 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
>
--
Torben Hohn
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99
Hinweise zum Datenschutz finden Sie hier (Informations on data privacy
can be found here): https://linutronix.de/kontakt/Datenschutz.php
Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen |
Registergericht (Registration Court): Amtsgericht Freiburg i.Br., HRB700
806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas Gleixner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.linutronix.de/pipermail/elbe-devel/attachments/20180920/654fae67/attachment.sig>
More information about the elbe-devel
mailing list