]> git.proxmox.com Git - mirror_qemu.git/commit - python/qemu/machine/machine.py
python/machine: use subprocess.DEVNULL instead of open(os.path.devnull)
authorJohn Snow <jsnow@redhat.com>
Thu, 27 May 2021 21:16:46 +0000 (17:16 -0400)
committerJohn Snow <jsnow@redhat.com>
Tue, 1 Jun 2021 20:21:21 +0000 (16:21 -0400)
commit07b71233a7ea77c0ec3687c3a3451865b3b899d3
treeb29237208f7239a1dc9c4d5323bedefdacdf95fd
parentee1a27235b7965bc5514555eec898f4d067fced2
python/machine: use subprocess.DEVNULL instead of open(os.path.devnull)

One less file resource to manage, and it helps quiet some pylint >=
2.8.0 warnings about not using a with-context manager for the open call.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Cleber Rosa <crosa@redhat.com>
Message-id: 20210527211715.394144-3-jsnow@redhat.com
Message-id: 20210517184808.3562549-3-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
python/qemu/machine.py