mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-03 15:32:26 -06:00
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>
This commit is contained in:
parent
4469bee2c5
commit
84e327e844
2 changed files with 2 additions and 1 deletions
|
@ -174,7 +174,7 @@ class QemuGuestAgentClient:
|
|||
# On error exception will raise
|
||||
except asyncio.TimeoutError:
|
||||
# On success command will timed out
|
||||
return
|
||||
pass
|
||||
|
||||
def shutdown(self, mode: str = 'powerdown') -> None:
|
||||
if mode not in ['powerdown', 'halt', 'reboot']:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue