[elbe-devel] [PATCH 36/37] Remove unused imports
Benedikt Spranger
b.spranger at linutronix.de
Wed Feb 7 15:29:03 CET 2024
Revisit module imports and drop all unused imports.
Signed-off-by: Benedikt Spranger <b.spranger 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):
--
2.43.0
More information about the elbe-devel
mailing list