about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2021-09-01 15:01:59 +0200
committertoonn <toonn@toonn.io>2021-09-01 16:03:48 +0200
commit5310a4fde3ba9a6b52badc5d27e045758e70b0b0 (patch)
tree2463154e2f677973cbd9efc2013c1484a8be89a5
parent9a76f49120f5ba32558313e73098fcafd490b211 (diff)
downloadranger-5310a4fde3ba9a6b52badc5d27e045758e70b0b0.tar.gz
runner: Switch to io.open
-rw-r--r--ranger/core/runner.py7
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
' href='#n147'>147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256