diff options
author | toonn <toonn@toonn.io> | 2021-08-27 19:50:26 +0200 |
---|---|---|
committer | toonn <toonn@toonn.io> | 2021-08-27 19:50:26 +0200 |
commit | 61a51cd31470dff52d11043054f5e38812a9dc77 (patch) | |
tree | 8bf0d457f7d8b102aa06b5911b03489c2b560979 | |
parent | 8ac61e3498a07336b8eff9cb867d2107527fb2ad (diff) | |
download | ranger-61a51cd31470dff52d11043054f5e38812a9dc77.tar.gz |
runner: Switch to open23
-rw-r--r-- | ranger/core/runner.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ranger/core/runner.py b/ranger/core/runner.py index 0a3aa171..f785448a 100644 --- a/ranger/core/runner.py +++ b/ranger/core/runner.py @@ -29,6 +29,7 @@ import os import sys from subprocess import Popen, PIPE, STDOUT from ranger.ext.get_executables import get_executables, get_term +from ranger.ext.open23 import open23 from ranger.ext.popen_forked import Popen_forked @@ -192,8 +193,8 @@ class Runner(object): # pylint: disable=too-few-public-methods if 's' in context.flags: # Using a with-statement for these is inconvenient. # pylint: disable=consider-using-with - devnull_writable = open(os.devnull, 'w') - devnull_readable = open(os.devnull, 'r') + devnull_writable = open23(os.devnull, 'w') + devnull_readable = open23(os.devnull, 'r') for key in ('stdout', 'stderr'): popen_kws[key] = devnull_writable toggle_ui = False |