diff options
-rw-r--r-- | ranger/core/runner.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ranger/core/runner.py b/ranger/core/runner.py index f785448a..ded64b5d 100644 --- a/ranger/core/runner.py +++ b/ranger/core/runner.py @@ -27,9 +27,10 @@ from __future__ import (absolute_import, division, print_function) import logging import os import sys +from io import open 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 @@ -193,8 +194,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 = open23(os.devnull, 'w') - devnull_readable = open23(os.devnull, 'r') + devnull_writable = open(os.devnull, 'w') + devnull_readable = open(os.devnull, 'r') for key in ('stdout', 'stderr'): popen_kws[key] = devnull_writable toggle_ui = False |