python: linter changes for pylint 3.x
authorJohn Snow <jsnow@redhat.com>
Wed, 26 Jun 2024 23:22:27 +0000 (19:22 -0400)
committerJohn Snow <jsnow@redhat.com>
Fri, 12 Jul 2024 20:36:20 +0000 (16:36 -0400)
commit84e327e8448eacef879a0f85d38d212b6f58ee4a
tree773a24e81a4844d0c2b7278402bbf10d87e24388
parent4469bee2c529832d762af4a2f89468c926f02fe4
python: linter changes for pylint 3.x

New bleeding edge versions, new nits to iron out. This addresses the
'check-python-tox' optional GitLab test, while 'check-python-minreqs'
saw no regressions, since it's frozen on an older version of pylint.

Fixes:
qemu/machine/machine.py:345:52: E0606: Possibly using variable 'sock' before assignment (possibly-used-before-assignment)
qemu/utils/qemu_ga_client.py:168:4: R1711: Useless return at end of function or method (useless-return)

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-id: 20240626232230.408004-2-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
python/qemu/machine/machine.py
python/qemu/utils/qemu_ga_client.py