aboutsummaryrefslogtreecommitdiff
path: root/scripts/qmp/qmp-shell
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2021-06-07 16:06:32 -0400
committerJohn Snow <jsnow@redhat.com>2021-06-18 16:10:07 -0400
commit41574295829b9a34d43e7cb95847340942d1ddf5 (patch)
tree413b5047b162cb78029a32a80342c63240918678 /scripts/qmp/qmp-shell
parentdb12abc20859e93e802f668a2f744222c96ada63 (diff)
downloadqemu-41574295829b9a34d43e7cb95847340942d1ddf5.zip
qemu-41574295829b9a34d43e7cb95847340942d1ddf5.tar.gz
qemu-41574295829b9a34d43e7cb95847340942d1ddf5.tar.bz2
scripts/qmp-shell: initialize completer early
Add an empty completer as a more type-safe placeholder instead of 'None'. Signed-off-by: John Snow <jsnow@redhat.com> Message-id: 20210607200649.1840382-26-jsnow@redhat.com Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'scripts/qmp/qmp-shell')
-rwxr-xr-xscripts/qmp/qmp-shell2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/qmp/qmp-shell b/scripts/qmp/qmp-shell
index 7369403..6703613 100755
--- a/scripts/qmp/qmp-shell
+++ b/scripts/qmp/qmp-shell
@@ -125,7 +125,7 @@ class QMPShell(qmp.QEMUMonitorProtocol):
def __init__(self, address, pretty=False, verbose=False):
super().__init__(self.parse_address(address))
self._greeting = None
- self._completer = None
+ self._completer = QMPCompleter()
self._pretty = pretty
self._transmode = False
self._actions = list()