summary refs log tree commit diff stats
path: root/python/qemu/console_socket.py
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2021-05-27 17:16:48 -0400
committerJohn Snow <jsnow@redhat.com>2021-06-01 16:21:21 -0400
commit8825fed82a1949ed74f103c2ff26c4d71d2e4845 (patch)
treeb740fa0baf80ebd80c7ea77b439475f701d87bbd /python/qemu/console_socket.py
parent14b41797d5eb20fb9c6d0a1fe809e8422938f230 (diff)
downloadfocaccia-qemu-8825fed82a1949ed74f103c2ff26c4d71d2e4845.tar.gz
focaccia-qemu-8825fed82a1949ed74f103c2ff26c4d71d2e4845.zip
python/console_socket: Add a pylint ignore
We manage cleaning up this resource ourselves. Pylint should shush.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Cleber Rosa <crosa@redhat.com>
Message-id: 20210527211715.394144-5-jsnow@redhat.com
Message-id: 20210517184808.3562549-5-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'python/qemu/console_socket.py')
-rw-r--r--python/qemu/console_socket.py1
1 files changed, 1 insertions, 0 deletions
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