diff options
author | Jose Fonseca <jfonseca@vmware.com> | 2016-02-17 15:37:28 +0000 |
---|---|---|
committer | Jose Fonseca <jfonseca@vmware.com> | 2016-02-17 15:37:28 +0000 |
commit | 7247d8dbdab37b97645642130cf27df9adde6300 (patch) | |
tree | 40cd1e0f5610128474e44b5ed532864c785385b7 /scripts | |
parent | 9b7da9c99599eee0f2811211a54ed4121c347442 (diff) |
scripts: Use os.path.devnull.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/retracediff.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/scripts/retracediff.py b/scripts/retracediff.py index bb5aa7f5..55f771e2 100755 --- a/scripts/retracediff.py +++ b/scripts/retracediff.py @@ -43,10 +43,7 @@ import jsondiff # Null file, to use when we're not interested in subprocesses output -if platform.system() == 'Windows': - NULL = open('NUL:', 'wb') -else: - NULL = open('/dev/null', 'wb') +NULL = open(os.path.devnull, 'wb') class RetraceRun: |