diff options
author | Jan Cholasta <jcholast@redhat.com> | 2016-11-24 09:46:42 +0100 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2016-11-29 14:50:51 +0100 |
commit | 9117a5d5a6ae7b3b97407e46f81a06c387974d7f (patch) | |
tree | 2459cb75a507cbdfd928c5881d1009c471755a27 /ipapython/ipautil.py | |
parent | a291c6ded91611ea2bd1a1fdb96314721d73a75f (diff) | |
download | freeipa-9117a5d5a6ae7b3b97407e46f81a06c387974d7f.tar.gz freeipa-9117a5d5a6ae7b3b97407e46f81a06c387974d7f.tar.xz freeipa-9117a5d5a6ae7b3b97407e46f81a06c387974d7f.zip |
paths: remove DEV_NULL
The platform-specific path to /dev/null is provided by the Python standard
library in os.devnull.
Replace all uses of paths.DEV_NULL with os.devnull and remove DEV_NULL.
https://fedorahosted.org/freeipa/ticket/6474
Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
Diffstat (limited to 'ipapython/ipautil.py')
-rw-r--r-- | ipapython/ipautil.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipapython/ipautil.py b/ipapython/ipautil.py index 472ba3596..fcb2e3500 100644 --- a/ipapython/ipautil.py +++ b/ipapython/ipautil.py @@ -413,7 +413,7 @@ def run(args, stdin=None, raiseonerr=True, nolog=(), env=None, if stdin: p_in = subprocess.PIPE if skip_output: - p_out = p_err = open(paths.DEV_NULL, 'w') + p_out = p_err = open(os.devnull, 'w') elif redirect_output: p_out = sys.stdout p_err = sys.stderr |