about summary refs log tree commit diff stats
path: root/ranger/ext/vcs/vcs.py
diff options
context:
space:
mode:
Diffstat (limited to 'ranger/ext/vcs/vcs.py')
-rw-r--r--ranger/ext/vcs/vcs.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ranger/ext/vcs/vcs.py b/ranger/ext/vcs/vcs.py
index 89259b5e..490aaaf4 100644
--- a/ranger/ext/vcs/vcs.py
+++ b/ranger/ext/vcs/vcs.py
@@ -11,6 +11,7 @@ import threading
 import time
 
 from ranger.ext import spawn
+from ranger.ext.open23 import open23
 
 # Python 2 compatibility
 try:
@@ -129,7 +130,7 @@ class Vcs(object):  # pylint: disable=too-many-instance-attributes
                     return output[:-1]
                 return output
             else:
-                with open(os.devnull, mode='w') as fd_devnull:
+                with open23(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):