summaryrefslogtreecommitdiffstats
path: root/python/qemu/machine.py
diff options
context:
space:
mode:
authorJohn Snow2020-05-29 00:21:28 +0200
committerPhilippe Mathieu-Daudé2020-05-31 18:25:30 +0200
commit9b8ccd6d5b81f10436764bf7e334e087f3918d12 (patch)
tree66909a96a6c62bfbdf349b49ddd6a725a7f35141 /python/qemu/machine.py
parentpython/qemu/machine: remove logging configuration (diff)
downloadqemu-9b8ccd6d5b81f10436764bf7e334e087f3918d12.tar.gz
qemu-9b8ccd6d5b81f10436764bf7e334e087f3918d12.tar.xz
qemu-9b8ccd6d5b81f10436764bf7e334e087f3918d12.zip
python/qemu: delint and add pylintrc
Bring our these files up to speed with pylint 2.5.0. Add a pylintrc file to formalize which pylint subset we are targeting. The similarity ignore is there to suppress similarity reports across imports, which for typing constants, are going to trigger this report erroneously. Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20200528222129.23826-4-jsnow@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Diffstat (limited to 'python/qemu/machine.py')
-rw-r--r--python/qemu/machine.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/qemu/machine.py b/python/qemu/machine.py
index 41554de533..8e4ecd1837 100644
--- a/python/qemu/machine.py
+++ b/python/qemu/machine.py
@@ -58,7 +58,7 @@ class MonitorResponseError(qmp.QMPError):
self.reply = reply
-class QEMUMachine(object):
+class QEMUMachine:
"""
A QEMU VM
@@ -239,7 +239,7 @@ class QEMUMachine(object):
'chardev=mon,mode=control'])
if self._machine is not None:
args.extend(['-machine', self._machine])
- for i in range(self._console_index):
+ for _ in range(self._console_index):
args.extend(['-serial', 'null'])
if self._console_set:
self._console_address = os.path.join(self._sock_dir,
@@ -374,7 +374,7 @@ class QEMUMachine(object):
command = ' '.join(self._qemu_full_args)
else:
command = ''
- LOG.warning(msg, -exitcode, command)
+ LOG.warning(msg, -int(exitcode), command)
self._launched = False