[elbe-devel] [PATCH 17/25] pylint: initvmaction: fix import order
Torben Hohn
torben.hohn at linutronix.de
Wed Aug 22 10:42:18 CEST 2018
pylint complains:
------------------------------------------------------------------------------------------------------------------------------------------
elbepack/initvmaction.py:21: [C0411(wrong-import-order), ] standard import "from tempfile import NamedTemporaryFile" comes before "import elbepack"
elbepack/initvmaction.py:23: [C0411(wrong-import-order), ] standard import "import sys" comes before "import elbepack"
elbepack/initvmaction.py:24: [C0411(wrong-import-order), ] standard import "import time" comes before "import elbepack"
elbepack/initvmaction.py:25: [C0411(wrong-import-order), ] standard import "import os" comes before "import elbepack"
elbepack/initvmaction.py:26: [C0411(wrong-import-order), ] standard import "import datetime" comes before "import elbepack"
------------------------------------------------------------------------------------------------------------------------------------------
reorder import statements.
Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
elbepack/initvmaction.py | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/elbepack/initvmaction.py b/elbepack/initvmaction.py
index 5cb0ac24..4c65bb87 100644
--- a/elbepack/initvmaction.py
+++ b/elbepack/initvmaction.py
@@ -10,6 +10,15 @@
from __future__ import print_function
+import sys
+import time
+import os
+import datetime
+
+import libvirt
+
+from tempfile import NamedTemporaryFile
+
import elbepack
from elbepack.treeutils import etree
from elbepack.directories import elbe_exe
@@ -18,14 +27,6 @@ from elbepack.filesystem import TmpdirFilesystem
from elbepack.elbexml import ElbeXML, ValidationError, ValidationMode
from elbepack.config import cfg
-from tempfile import NamedTemporaryFile
-
-import sys
-import time
-import os
-import datetime
-
-import libvirt
def cmd_exists(x):
--
2.11.0
More information about the elbe-devel
mailing list