From: John Snow Date: Mon, 7 Jun 2021 20:06:32 +0000 (-0400) Subject: scripts/qmp-shell: initialize completer early X-Git-Tag: v6.1.0-rc0~66^2~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=41574295829b9a34d43e7cb95847340942d1ddf5;p=thirdparty%2Fqemu.git scripts/qmp-shell: initialize completer early Add an empty completer as a more type-safe placeholder instead of 'None'. Signed-off-by: John Snow Message-id: 20210607200649.1840382-26-jsnow@redhat.com Signed-off-by: John Snow --- diff --git a/scripts/qmp/qmp-shell b/scripts/qmp/qmp-shell index 73694035b20..670361322c5 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()