summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2016-02-17 15:37:28 +0000
committerJose Fonseca <jfonseca@vmware.com>2016-02-17 15:37:28 +0000
commit7247d8dbdab37b97645642130cf27df9adde6300 (patch)
tree40cd1e0f5610128474e44b5ed532864c785385b7 /scripts
parent9b7da9c99599eee0f2811211a54ed4121c347442 (diff)
scripts: Use os.path.devnull.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/retracediff.py5
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: