[elbe-devel] [PATCH 36/37] Remove unused imports
Eduard Krein
eduard.krein at linutronix.de
Wed Feb 7 16:38:47 CET 2024
Am Mittwoch, dem 07.02.2024 um 15:29 +0100 schrieb Benedikt Spranger:
> Revisit module imports and drop all unused imports.
>
> Signed-off-by: Benedikt Spranger <b.spranger at linutronix.de>
Reviewed-by: Eduard Krein <eduard.krein at linutronix.de>
> ---
> elbepack/daemons/soap/__init__.py | 1 -
> elbepack/initvmaction.py | 2 +-
> elbepack/repomanager.py | 1 -
> elbepack/tests/notest_pylint.py | 2 +-
> elbepack/tests/test_preproc.py | 2 +-
> 5 files changed, 3 insertions(+), 5 deletions(-)
>
> diff --git a/elbepack/daemons/soap/__init__.py
> b/elbepack/daemons/soap/__init__.py
> index 503e8c16..43f5b129 100644
> --- a/elbepack/daemons/soap/__init__.py
> +++ b/elbepack/daemons/soap/__init__.py
> @@ -3,7 +3,6 @@
> # SPDX-FileCopyrightText: 2014-2017 Linutronix GmbH
>
> import logging
> -import sys
> import warnings
>
> from beaker.middleware import SessionMiddleware
> diff --git a/elbepack/initvmaction.py b/elbepack/initvmaction.py
> index a1543d56..8e994b1e 100644
> --- a/elbepack/initvmaction.py
> +++ b/elbepack/initvmaction.py
> @@ -14,7 +14,7 @@ from elbepack.directories import elbe_exe
> from elbepack.elbexml import ElbeXML, ValidationError,
> ValidationMode
> from elbepack.filesystem import TmpdirFilesystem
> from elbepack.repodir import Repodir, RepodirError
> -from elbepack.shellhelper import CommandError, command_out,
> command_out_stderr, system
> +from elbepack.shellhelper import CommandError, command_out_stderr,
> system
> from elbepack.treeutils import etree
> from elbepack.xmlpreprocess import PreprocessWrapper
>
> diff --git a/elbepack/repomanager.py b/elbepack/repomanager.py
> index 862bc615..fc224505 100644
> --- a/elbepack/repomanager.py
> +++ b/elbepack/repomanager.py
> @@ -3,7 +3,6 @@
> # SPDX-FileCopyrightText: 2014-2017 Linutronix GmbH
>
> import os
> -import shutil
>
> from debian.deb822 import Deb822
>
> diff --git a/elbepack/tests/notest_pylint.py
> b/elbepack/tests/notest_pylint.py
> index ac1e5007..e5bab9d8 100644
> --- a/elbepack/tests/notest_pylint.py
> +++ b/elbepack/tests/notest_pylint.py
> @@ -5,7 +5,7 @@
> import os
>
> from elbepack.commands.test import ElbeTestCase, ElbeTestException,
> system
> -from elbepack.directories import elbe_dir, elbe_exe, pack_dir
> +from elbepack.directories import elbe_exe, pack_dir
> from elbepack.shellhelper import system_out
>
>
> diff --git a/elbepack/tests/test_preproc.py
> b/elbepack/tests/test_preproc.py
> index bd7da0f8..66b5e851 100644
> --- a/elbepack/tests/test_preproc.py
> +++ b/elbepack/tests/test_preproc.py
> @@ -6,7 +6,7 @@ import os
> import sys
>
> from elbepack.commands.test import ElbeTestCase, ElbeTestException,
> system
> -from elbepack.directories import elbe_dir, elbe_exe
> +from elbepack.directories import elbe_exe
>
>
> class TestPreproc(ElbeTestCase):
--
Eduard Krein
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 19; Fax.: +49 7556 25 999 99
Hinweise zum Datenschutz finden Sie hier (Informations on data privacy
can be found here): https://linutronix.de/legal/data-protection.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, Sharon Heck, Yulia Beck, Tiffany Silva
More information about the elbe-devel
mailing list