diff options
author | toonn <toonn@toonn.io> | 2021-09-01 15:02:22 +0200 |
---|---|---|
committer | toonn <toonn@toonn.io> | 2021-09-01 16:03:48 +0200 |
commit | e789874138873789dd200d90c19bf6a62b6c6757 (patch) | |
tree | 44f4baa2f1759b3456a6e3720dc9095970a8fd0a /ranger | |
parent | 5310a4fde3ba9a6b52badc5d27e045758e70b0b0 (diff) | |
download | ranger-e789874138873789dd200d90c19bf6a62b6c6757.tar.gz |
popen_forked: Switch to io.open
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/ext/popen_forked.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/ext/popen_forked.py b/ranger/ext/popen_forked.py index 238e9a64..8f73e355 100644 --- a/ranger/ext/popen_forked.py +++ b/ranger/ext/popen_forked.py @@ -4,9 +4,9 @@ from __future__ import (absolute_import, division, print_function) import os +from io import open from subprocess import Popen -from ranger.ext.open23 import open23 def Popen_forked(*args, **kwargs): # pylint: disable=invalid-name @@ -20,7 +20,7 @@ def Popen_forked(*args, **kwargs): # pylint: disable=invalid-name return False if pid == 0: os.setsid() - with open23(os.devnull, 'r') as null_r, open23(os.devnull, 'w') as null_w: + with open(os.devnull, 'r') as null_r, open(os.devnull, 'w') as null_w: kwargs['stdin'] = null_r kwargs['stdout'] = kwargs['stderr'] = null_w Popen(*args, **kwargs) # pylint: disable=consider-using-with |