Skip to content
Snippets Groups Projects
Commit 932ca4bb authored by John Snow's avatar John Snow
Browse files

python/qemu: use isort to lay out imports


Borrowed from the QAPI cleanup series, use the same configuration to
standardize the way we write and sort imports.

Signed-off-by: default avatarJohn Snow <jsnow@redhat.com>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: default avatarKevin Wolf <kwolf@redhat.com>
Message-id: 20201006235817.3280413-2-jsnow@redhat.com
Signed-off-by: default avatarJohn Snow <jsnow@redhat.com>
parent b8eaee96
No related branches found
No related tags found
No related merge requests found
[settings]
force_grid_wrap=4
force_sort_within_sections=True
include_trailing_comma=True
line_length=72
lines_after_imports=2
multi_line_output=3
\ No newline at end of file
......@@ -18,6 +18,7 @@
import os
import subprocess
LOG = logging.getLogger(__name__)
# Mapping host architecture to any additional architectures it can
......
......@@ -13,9 +13,9 @@
# the COPYING file in the top-level directory.
#
from collections import deque
import socket
import threading
from collections import deque
import time
......
......@@ -20,15 +20,15 @@
import errno
import logging
import os
import subprocess
import shutil
import signal
import subprocess
import tempfile
from typing import Optional, Type
from types import TracebackType
from . import console_socket
from typing import Optional, Type
from . import console_socket, qmp
from . import qmp
LOG = logging.getLogger(__name__)
......
......@@ -7,21 +7,21 @@
# This work is licensed under the terms of the GNU GPL, version 2. See
# the COPYING file in the top-level directory.
import json
import errno
import socket
import json
import logging
import socket
from types import TracebackType
from typing import (
Any,
cast,
Dict,
Optional,
TextIO,
Type,
Tuple,
Type,
Union,
cast,
)
from types import TracebackType
# QMPMessage is a QMP Message of any kind.
......
......@@ -17,8 +17,8 @@
# Based on qmp.py.
#
import socket
import os
import socket
from typing import Optional, TextIO
from .machine import QEMUMachine
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment