about summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2021-07-17 00:10:43 +0200
committertoonn <toonn@toonn.io>2021-07-20 23:17:45 +0200
commitc4ae0e2b54176d08cb0ce1992c2536ae798cf845 (patch)
treef9b0a93193b3f3827e0de39e07ecb82e3474a986 /ranger
parent48ac075160ed425a35b74743612ab6b5916e9a04 (diff)
downloadranger-c4ae0e2b54176d08cb0ce1992c2536ae798cf845.tar.gz
ext.img_display: Disable lint for peculiar use of open
Diffstat (limited to 'ranger')
-rw-r--r--ranger/ext/img_display.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ranger/ext/img_display.py b/ranger/ext/img_display.py
index 3e60da07..f3a36432 100644
--- a/ranger/ext/img_display.py
+++ b/ranger/ext/img_display.py
@@ -141,6 +141,8 @@ class W3MImageDisplayer(ImageDisplayer, FileManagerAware):
         """start w3mimgdisplay"""
         self.binary_path = None
         self.binary_path = self._find_w3mimgdisplay_executable()  # may crash
+        # We cannot close the process because that stops the preview.
+        # pylint: disable=consider-using-with
         self.process = Popen([self.binary_path] + W3MIMGDISPLAY_OPTIONS, cwd=self.working_dir,
                              stdin=PIPE, stdout=PIPE, universal_newlines=True)
         self.is_initialized = True
@@ -740,6 +742,8 @@ class UeberzugImageDisplayer(ImageDisplayer):
                 and not self.process.stdin.closed):
             return
 
+        # We cannot close the process because that stops the preview.
+        # pylint: disable=consider-using-with
         self.process = Popen(['ueberzug', 'layer', '--silent'], cwd=self.working_dir,
                              stdin=PIPE, universal_newlines=True)
         self.is_initialized = True