qemu-e2k/python/qemu
John Snow 63c33f3c28 python/machine: Disable pylint warning for open() in _pre_launch
Shift the open() call later so that the pylint pragma applies *only* to
that one open() call. Add a note that suggests why this is safe: the
resource is unconditionally cleaned up in _post_shutdown().

_post_shutdown is called after failed launches (see launch()), and
unconditionally after every call to shutdown(), and therefore also on
__exit__.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
Reviewed-by: Cleber Rosa <crosa@redhat.com>
Message-id: 20210527211715.394144-6-jsnow@redhat.com
Message-id: 20210517184808.3562549-6-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
2021-06-01 16:21:21 -04:00
..
.flake8 python/qemu: delint; add flake8 config 2020-05-31 18:25:30 +02:00
.isort.cfg python/qemu: use isort to lay out imports 2020-10-20 09:37:57 -04:00
__init__.py python/qemu: Remove unneeded imports in __init__ 2019-12-16 18:39:51 -05:00
accel.py python/qemu: Add mypy type annotations 2020-10-20 09:37:57 -04:00
console_socket.py python/console_socket: Add a pylint ignore 2021-06-01 16:21:21 -04:00
machine.py python/machine: Disable pylint warning for open() in _pre_launch 2021-06-01 16:21:21 -04:00
pylintrc python/qemu: Cleanup changes to ConsoleSocket 2020-07-27 09:41:52 +01:00
qmp.py python/qemu/qmp.py: Fix settimeout operation 2020-10-20 15:00:06 -04:00
qtest.py Python: expose QEMUMachine's temporary directory 2021-06-01 16:21:20 -04:00
utils.py Python: add utility function for retrieving port redirection 2021-06-01 16:21:20 -04:00