summary refs log tree commit diff stats
path: root/python/qemu/qmp/qmp_client.py
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2023-02-09 19:31:41 -0500
committerJohn Snow <jsnow@redhat.com>2023-02-22 23:35:03 -0500
commitaef633e76504f6f2f3be47a22b271ce6469c0d9d (patch)
tree3ec6a17f9b0f3f6314cdc8428dad6097f006a43e /python/qemu/qmp/qmp_client.py
parent79b677d658d3d35e1e776826ac4abb28cdce69b8 (diff)
downloadfocaccia-qemu-aef633e76504f6f2f3be47a22b271ce6469c0d9d.tar.gz
focaccia-qemu-aef633e76504f6f2f3be47a22b271ce6469c0d9d.zip
python: support pylint 2.16
Pylint 2.16 adds a few new checks that cause the optional check-tox CI
job to fail.

1. The superfluous-parens check seems to be a bit more aggressive,
2. broad-exception-raised is new; it discourages "raise Exception".

Fix these minor issues and turn the lights green.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Beraldo Leal <bleal@redhat.com>
Message-id: 20230210003147.1309376-2-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'python/qemu/qmp/qmp_client.py')
-rw-r--r--python/qemu/qmp/qmp_client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/qemu/qmp/qmp_client.py b/python/qemu/qmp/qmp_client.py
index b5772e7f32..9d73ae6e7a 100644
--- a/python/qemu/qmp/qmp_client.py
+++ b/python/qemu/qmp/qmp_client.py
@@ -198,7 +198,7 @@ class QMPClient(AsyncProtocol[Message], Events):
     logger = logging.getLogger(__name__)
 
     # Read buffer limit; 10MB like libvirt default
-    _limit = (10 * 1024 * 1024)
+    _limit = 10 * 1024 * 1024
 
     # Type alias for pending execute() result items
     _PendingT = Union[Message, ExecInterruptedError]