aboutsummaryrefslogtreecommitdiff
path: root/scripts/qmp
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2021-06-07 16:06:08 -0400
committerJohn Snow <jsnow@redhat.com>2021-06-18 16:10:06 -0400
commitbadf462985eb55a8f589d983ee65542972d16d3e (patch)
tree03c646b09335af84e3261ce6e1c9212d46268925 /scripts/qmp
parent88fb483fc559e297ee681e161d70c4615b2a28ea (diff)
scripts/qmp-shell: apply isort rules
Signed-off-by: John Snow <jsnow@redhat.com> Message-id: 20210607200649.1840382-2-jsnow@redhat.com Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'scripts/qmp')
-rwxr-xr-xscripts/qmp/qmp-shell12
1 files changed, 7 insertions, 5 deletions
diff --git a/scripts/qmp/qmp-shell b/scripts/qmp/qmp-shell
index d5ae8a9b21..a00efe6fea 100755
--- a/scripts/qmp/qmp-shell
+++ b/scripts/qmp/qmp-shell
@@ -65,18 +65,20 @@
# which will echo back the properly formatted JSON-compliant QMP that is being
# sent to QEMU, which is useful for debugging and documentation generation.
-import json
import ast
-import readline
-import sys
-import os
-import errno
import atexit
+import errno
+import json
+import os
import re
+import readline
+import sys
+
sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', 'python'))
from qemu import qmp
+
class QMPCompleter(list):
def complete(self, text, state):
for cmd in self: