From: John Snow Date: Mon, 7 Jun 2021 20:06:12 +0000 (-0400) Subject: scripts/qmp-shell: fix connect method signature X-Git-Tag: v6.1.0-rc0~66^2~37 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f2daa2d489d7b4f94288d6fafb8072fb1ea384a9;p=thirdparty%2Fqemu.git scripts/qmp-shell: fix connect method signature It needs to match the parent's signature -- the negotiate parameter must be optional. Signed-off-by: John Snow Message-id: 20210607200649.1840382-6-jsnow@redhat.com Signed-off-by: John Snow --- diff --git a/scripts/qmp/qmp-shell b/scripts/qmp/qmp-shell index 413dd4d2de0..04ca6a25aee 100755 --- a/scripts/qmp/qmp-shell +++ b/scripts/qmp/qmp-shell @@ -278,7 +278,7 @@ class QMPShell(qmp.QEMUMonitorProtocol): self._print(resp) return True - def connect(self, negotiate): + def connect(self, negotiate: bool = True): self._greeting = super(QMPShell, self).connect(negotiate) self.__completer_setup()