about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2021-08-27 19:42:25 +0200
committertoonn <toonn@toonn.io>2021-08-27 19:42:25 +0200
commitba3a7685a3e658b25353ebae659c3717ed10daea (patch)
tree15c6866cdc26c0169ac84bf716d1231f4ca380d3
parenta59cefe65aaae120bd30d6e5cbf0f95d5532c10d (diff)
downloadranger-ba3a7685a3e658b25353ebae659c3717ed10daea.tar.gz
spawn: Switch to open23
-rw-r--r--ranger/ext/spawn.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ranger/ext/spawn.py b/ranger/ext/spawn.py
index c237d88a..39d354d7 100644
--- a/ranger/ext/spawn.py
+++ b/ranger/ext/spawn.py
@@ -6,6 +6,7 @@ from __future__ import (absolute_import, division, print_function)
 from os import devnull
 from subprocess import PIPE, CalledProcessError
 
+from ranger.ext.open23 import open23
 from ranger.ext.popen23 import Popen23
 
 ENCODING = 'utf-8'
@@ -34,7 +35,7 @@ def check_output(popenargs, **kwargs):
         with Popen23(popenargs, **kwargs) as process:
             stdout, _ = process.communicate()
     else:
-        with open(devnull, mode='w') as fd_devnull:
+        with open23(devnull, mode='w') as fd_devnull:
             with Popen23(popenargs, stderr=fd_devnull, **kwargs) as process:
                 stdout, _ = process.communicate()
 
'>133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158