From 736eca593d9ddf381e36e60a8e2e8822bcaf67d3 Mon Sep 17 00:00:00 2001 From: toonn Date: Sat, 5 Feb 2022 19:29:53 +0100 Subject: Revert "img_display: Drop disappeared Pylint options" This reverts commit 7ae3f6e2ed2ff6648f4a13d276b6e6b586592720. --- ranger/ext/img_display.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ranger/ext/img_display.py b/ranger/ext/img_display.py index 97b8f43f..43e4203d 100644 --- a/ranger/ext/img_display.py +++ b/ranger/ext/img_display.py @@ -143,6 +143,7 @@ class W3MImageDisplayer(ImageDisplayer, FileManagerAware): 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 @@ -744,6 +745,7 @@ class UeberzugImageDisplayer(ImageDisplayer): 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 -- cgit 1.4.1-2-gfad0