diff options
author | toonn <toonn@toonn.io> | 2021-07-17 00:10:43 +0200 |
---|---|---|
committer | toonn <toonn@toonn.io> | 2021-07-20 23:17:45 +0200 |
commit | c4ae0e2b54176d08cb0ce1992c2536ae798cf845 (patch) | |
tree | f9b0a93193b3f3827e0de39e07ecb82e3474a986 /ranger | |
parent | 48ac075160ed425a35b74743612ab6b5916e9a04 (diff) | |
download | ranger-c4ae0e2b54176d08cb0ce1992c2536ae798cf845.tar.gz |
ext.img_display: Disable lint for peculiar use of open
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/ext/img_display.py | 4 |
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 |