[elbe-devel] [PATCH 35/75] toolchain: Fix Pylint

Torben Hohn torben.hohn at linutronix.de
Fri May 29 12:23:22 CEST 2020


On Mon, May 25, 2020 at 11:42:28AM -0400, Olivier Dion wrote:
> 7:0:  W0402: (deprecated-module)
> 14:0: R0205: (useless-object-inheritance)
> 
> Signed-off-by: Olivier Dion <dion at linutronix.de>
> ---
>  elbepack/toolchain.py | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/elbepack/toolchain.py b/elbepack/toolchain.py
> index c5e631ac..aa804206 100644
> --- a/elbepack/toolchain.py
> +++ b/elbepack/toolchain.py
> @@ -4,13 +4,16 @@
>  #
>  # SPDX-License-Identifier: GPL-3.0-or-later
>  
> +# pylint: disable=deprecated-module

as stated earlier, remove it from the deprecated modules in pylint

then 

Reviewed-by: Torben Hohn <torben.hohn at linutronix.de>

>  import string
> +
>  import glob
>  import os
>  
>  arch2triple = {"armhf": "arm-linux-gnueabihf", "armel": "arm-linux-gnueabi"}
>  
> -
> +# TODO:py3 Remove object inheritance
> +# pylint: disable=useless-object-inheritance
>  class Toolchain(object):
>      libc_path = "${triple}/libc"
>      gcc_libpath = "${triple}/lib"
> -- 
> 2.26.2
> 
> 
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel

-- 
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



More information about the elbe-devel mailing list