qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v2 32/72] scripts/qmp-shell: fix connect method signature


From: John Snow
Subject: [PATCH v2 32/72] scripts/qmp-shell: fix connect method signature
Date: Tue, 3 Nov 2020 19:35:22 -0500

It needs to match the parent's. (The negotiate parameter must be optional.)

Signed-off-by: John Snow <jsnow@redhat.com>
---
 scripts/qmp/qmp-shell | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/qmp/qmp-shell b/scripts/qmp/qmp-shell
index 330f8b32f9c2..27632ed5fee7 100755
--- a/scripts/qmp/qmp-shell
+++ b/scripts/qmp/qmp-shell
@@ -297,7 +297,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()
 
-- 
2.26.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]