summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2022-02-05 19:29:52 +0100
committertoonn <toonn@toonn.io>2022-02-05 19:29:52 +0100
commit6d677bd512952b109ec0c53cceeaecdff695cb20 (patch)
tree995891938cef7a6b9eea5c55980e13c4260f3e3a
parente7f2788571762a2bcda3aeaba51a9e843d887c64 (diff)
Revert "runner: Drop disappeared Pylint options"
-rw-r--r--ranger/core/runner.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ranger/core/runner.py b/ranger/core/runner.py
index acd85fb8..1d2b91f7 100644
--- a/ranger/core/runner.py
+++ b/ranger/core/runner.py
@@ -193,6 +193,7 @@ class Runner(object): # pylint: disable=too-few-public-methods
context.wait = False
if 's' in context.flags:
# Using a with-statement for these is inconvenient.
+ # pylint: disable=consider-using-with
devnull_writable = open(os.devnull, 'w', encoding="utf-8")
devnull_readable = open(os.devnull, 'r', encoding="utf-8")
for key in ('stdout', 'stderr'):
@@ -243,6 +244,7 @@ class Runner(object): # pylint: disable=too-few-public-methods
if 'f' in context.flags and 'r' not in context.flags:
# This can fail and return False if os.fork() is not
# supported, but we assume it is, since curses is used.
+ # pylint: disable=consider-using-with
Popen_forked(**popen_kws)
else:
process = Popen(**popen_kws)