]> git.proxmox.com Git - mirror_qemu.git/commit
python: support pylint 2.16
authorJohn Snow <jsnow@redhat.com>
Fri, 10 Feb 2023 00:31:41 +0000 (19:31 -0500)
committerJohn Snow <jsnow@redhat.com>
Thu, 23 Feb 2023 04:35:03 +0000 (23:35 -0500)
commitaef633e76504f6f2f3be47a22b271ce6469c0d9d
tree3ec6a17f9b0f3f6314cdc8428dad6097f006a43e
parent79b677d658d3d35e1e776826ac4abb28cdce69b8
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>
python/qemu/qmp/protocol.py
python/qemu/qmp/qmp_client.py
python/qemu/utils/qemu_ga_client.py
tests/qemu-iotests/iotests.py
tests/qemu-iotests/tests/migrate-bitmaps-postcopy-test