summaryrefslogtreecommitdiffstats
path: root/Tools/compiler
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2000-05-02 22:29:46 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2000-05-02 22:29:46 (GMT)
commit0a4f1ff64eeb50cdf0b81bd4cff5b2e1d159daa5 (patch)
tree0092d57f50b2fd21d86e3496b81a924943d12978 /Tools/compiler
parent7d64b48eafea227f61433d125315d7b40bf47682 (diff)
downloadcpython-0a4f1ff64eeb50cdf0b81bd4cff5b2e1d159daa5.zip
cpython-0a4f1ff64eeb50cdf0b81bd4cff5b2e1d159daa5.tar.gz
cpython-0a4f1ff64eeb50cdf0b81bd4cff5b2e1d159daa5.tar.bz2
patches from Mark Hammond
compile.py: On Windows, use 'nul' instead of '/dev/null'. test.py: Use double-quotes for the command-line, as Windows doesnt recognise singles.
Diffstat (limited to 'Tools/compiler')
-rw-r--r--Tools/compiler/compile.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Tools/compiler/compile.py b/Tools/compiler/compile.py
index 7d6facf..5d82c3d 100644
--- a/Tools/compiler/compile.py
+++ b/Tools/compiler/compile.py
@@ -11,7 +11,10 @@ def main():
VERBOSE = 1
visitor.ASTVisitor.VERBOSE = visitor.ASTVisitor.VERBOSE + 1
if k == '-q':
- f = open('/dev/null', 'wb')
+ if sys.platform[:3]=="win":
+ f = open('nul', 'wb') # /dev/null fails on Windows...
+ else:
+ f = open('/dev/null', 'wb')
sys.stdout = f
if not args:
print "no files to compile"