]> Git Repo - qemu.git/commitdiff
python/console_socket: Add a pylint ignore
authorJohn Snow <[email protected]>
Thu, 27 May 2021 21:16:48 +0000 (17:16 -0400)
committerJohn Snow <[email protected]>
Tue, 1 Jun 2021 20:21:21 +0000 (16:21 -0400)
We manage cleaning up this resource ourselves. Pylint should shush.

Signed-off-by: John Snow <[email protected]>
Reviewed-by: Cleber Rosa <[email protected]>
Message-id: 20210527211715[email protected]
Message-id: 20210517184808.3562549[email protected]
Signed-off-by: John Snow <[email protected]>
python/qemu/console_socket.py

index 87237bebef74cc0ef6c0a69e8b1e6fdb9f24632f..8c4ff598ad7a17b4526e84cbe56137ee3643fa40 100644 (file)
@@ -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
This page took 0.027071 seconds and 4 git commands to generate.