[elbe-devel] [PATCH 1/5] debianize: use relative imports to make pycodestyle happy
Torben Hohn
torben.hohn at linutronix.de
Tue Oct 23 15:43:39 CEST 2018
pycodestyle wants 2 space before an inline comment, and 1 space after
the #. This would result in a too long line, which is also frowned
upon.
Use relative imports to get the line length under control again.
Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
elbepack/debianize/debianize.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/elbepack/debianize/debianize.py b/elbepack/debianize/debianize.py
index 3cb92b39..0f51cb61 100644
--- a/elbepack/debianize/debianize.py
+++ b/elbepack/debianize/debianize.py
@@ -5,11 +5,11 @@
from npyscreen import NPSAppManaged
-from elbepack.debianize.kernel import Kernel #pylint: disable=unused-import
-from elbepack.debianize.uboot import UBoot #pylint: disable=unused-import
-from elbepack.debianize.barebox import BareBox #pylint: disable=unused-import
+from .kernel import Kernel # pylint: disable=unused-import
+from .uboot import UBoot # pylint: disable=unused-import
+from .barebox import BareBox # pylint: disable=unused-import
-from elbepack.debianize.base import DebianizeBase #pylint: disable=unused-import
+from .base import DebianizeBase # pylint: disable=unused-import
class Debianize (NPSAppManaged):
--
2.11.0
More information about the elbe-devel
mailing list