[Libguestfs] [v2v PATCH 2/6] PEP 8: move imports at the top

Pino Toscano ptoscano at redhat.com
Fri Jan 10 15:47:25 UTC 2020


No functional changes.
---
 tests/test-v2v-o-rhv-upload-module/ovirtsdk4/__init__.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/tests/test-v2v-o-rhv-upload-module/ovirtsdk4/__init__.py b/tests/test-v2v-o-rhv-upload-module/ovirtsdk4/__init__.py
index 774c7a5c..0bc2890f 100644
--- a/tests/test-v2v-o-rhv-upload-module/ovirtsdk4/__init__.py
+++ b/tests/test-v2v-o-rhv-upload-module/ovirtsdk4/__init__.py
@@ -18,6 +18,10 @@
 # Fake ovirtsdk4 module used as a test harness.
 # See v2v/test-v2v-o-rhv-upload.sh
 
+from http.server import HTTPServer, BaseHTTPRequestHandler
+import threading
+
+
 class Error(Exception):
     pass
 class NotFoundError(Error):
@@ -131,9 +135,6 @@ class VmsService(object):
 # Create a background thread running a web server which is
 # simulating the imageio server.
 
-from http.server import HTTPServer, BaseHTTPRequestHandler
-import threading
-
 class RequestHandler(BaseHTTPRequestHandler):
     protocol_version = 'HTTP/1.1'
 
-- 
2.24.1




More information about the Libguestfs mailing list