about summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2021-09-01 15:03:34 +0200
committertoonn <toonn@toonn.io>2021-09-01 16:03:48 +0200
commit3a318f18d8064ab23f9bf89d075fa99e78ec63b6 (patch)
treea0d143ecd668fe286859749a58b11849e2fdce41 /ranger
parent05b46d256c4df731364fbd837d9d8d12c78743ac (diff)
downloadranger-3a318f18d8064ab23f9bf89d075fa99e78ec63b6.tar.gz
vcs: Switch to io.open
Diffstat (limited to 'ranger')
-rw-r--r--ranger/ext/vcs/vcs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/ext/vcs/vcs.py b/ranger/ext/vcs/vcs.py
index 490aaaf4..eb542fd1 100644
--- a/ranger/ext/vcs/vcs.py
+++ b/ranger/ext/vcs/vcs.py
@@ -9,9 +9,9 @@ import os
 import subprocess
 import threading
 import time
+from io import open
 
 from ranger.ext import spawn
-from ranger.ext.open23 import open23
 
 # Python 2 compatibility
 try:
@@ -130,7 +130,7 @@ class Vcs(object):  # pylint: disable=too-many-instance-attributes
                     return output[:-1]
                 return output
             else:
-                with open23(os.devnull, mode='w') as fd_devnull:
+                with open(os.devnull, mode='w') as fd_devnull:
                     subprocess.check_call(cmd, cwd=path, stdout=fd_devnull, stderr=fd_devnull)
                 return None
         except (subprocess.CalledProcessError, OSError):