mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
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>
This commit is contained in:
parent
053774bdec
commit
9b8ccd6d5b
3 changed files with 88 additions and 18 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue