From: John Snow Date: Thu, 27 May 2021 21:16:48 +0000 (-0400) Subject: python/console_socket: Add a pylint ignore X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=8825fed82a1949ed74f103c2ff26c4d71d2e4845;p=qemu.git python/console_socket: Add a pylint ignore We manage cleaning up this resource ourselves. Pylint should shush. Signed-off-by: John Snow Reviewed-by: Cleber Rosa Message-id: 20210527211715.394144-5-jsnow@redhat.com Message-id: 20210517184808.3562549-5-jsnow@redhat.com Signed-off-by: John Snow --- diff --git a/python/qemu/console_socket.py b/python/qemu/console_socket.py index 87237bebef..8c4ff598ad 100644 --- a/python/qemu/console_socket.py +++ b/python/qemu/console_socket.py @@ -39,6 +39,7 @@ class ConsoleSocket(socket.socket): self.connect(address) self._logfile = None if file: + # pylint: disable=consider-using-with self._logfile = open(file, "bw") self._open = True self._drain_thread = None