diff options
author | toonn <toonn@toonn.io> | 2021-08-27 19:41:42 +0200 |
---|---|---|
committer | toonn <toonn@toonn.io> | 2021-08-27 19:41:42 +0200 |
commit | a59cefe65aaae120bd30d6e5cbf0f95d5532c10d (patch) | |
tree | 4e91f223c59c6b439f8c6a9bbfe7ef125f9d6f58 | |
parent | bb8eb7102b9476f6d427cafb3c060d46fbc13afe (diff) | |
download | ranger-a59cefe65aaae120bd30d6e5cbf0f95d5532c10d.tar.gz |
vcs: Switch to open23
-rw-r--r-- | ranger/ext/vcs/vcs.py | 3 |
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): |