[elbe-devel] [PATCH 28/28] pylint: virtapt: make pylint not complain about unused import apt.

Torben Hohn torben.hohn at linutronix.de
Wed Aug 22 11:29:22 CEST 2018


see the comment above. apt_pkg requires, that apt is imported.

disable unused-import warning locally

Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
 elbepack/virtapt.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/elbepack/virtapt.py b/elbepack/virtapt.py
index bffbc659..c3785973 100644
--- a/elbepack/virtapt.py
+++ b/elbepack/virtapt.py
@@ -17,7 +17,8 @@ from multiprocessing.managers import BaseManager
 
 # don't remove the apt import, it is really needed, due to some magic in
 # apt_pkg
-import apt
+
+import apt  # pylint: disable=unused-import
 import apt_pkg
 
 
-- 
2.11.0




More information about the elbe-devel mailing list