diff options
author | toonn <toonn@toonn.io> | 2021-09-01 15:03:22 +0200 |
---|---|---|
committer | toonn <toonn@toonn.io> | 2021-09-01 16:03:48 +0200 |
commit | 05b46d256c4df731364fbd837d9d8d12c78743ac (patch) | |
tree | e133fd83d662205410eae19a75e8b4846157153b | |
parent | e789874138873789dd200d90c19bf6a62b6c6757 (diff) | |
download | ranger-05b46d256c4df731364fbd837d9d8d12c78743ac.tar.gz |
spawn: Switch to io.open
-rw-r--r-- | ranger/ext/spawn.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/ext/spawn.py b/ranger/ext/spawn.py index 39d354d7..57151c84 100644 --- a/ranger/ext/spawn.py +++ b/ranger/ext/spawn.py @@ -3,10 +3,10 @@ from __future__ import (absolute_import, division, print_function) +from io import open from os import devnull from subprocess import PIPE, CalledProcessError -from ranger.ext.open23 import open23 from ranger.ext.popen23 import Popen23 ENCODING = 'utf-8' @@ -35,7 +35,7 @@ def check_output(popenargs, **kwargs): with Popen23(popenargs, **kwargs) as process: stdout, _ = process.communicate() else: - with open23(devnull, mode='w') as fd_devnull: + with open(devnull, mode='w') as fd_devnull: with Popen23(popenargs, stderr=fd_devnull, **kwargs) as process: stdout, _ = process.communicate() |