diff options
author | John Snow <jsnow@redhat.com> | 2021-05-27 17:16:48 -0400 |
---|---|---|
committer | John Snow <jsnow@redhat.com> | 2021-06-01 16:21:21 -0400 |
commit | 8825fed82a1949ed74f103c2ff26c4d71d2e4845 (patch) | |
tree | b740fa0baf80ebd80c7ea77b439475f701d87bbd /python | |
parent | 14b41797d5eb20fb9c6d0a1fe809e8422938f230 (diff) |
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')
-rw-r--r-- | python/qemu/console_socket.py | 1 |
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 |