Commit 6064e922 authored by Jeremy Hylton's avatar Jeremy Hylton

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.
parent ba1ae233
...@@ -11,6 +11,9 @@ def main(): ...@@ -11,6 +11,9 @@ def main():
VERBOSE = 1 VERBOSE = 1
visitor.ASTVisitor.VERBOSE = visitor.ASTVisitor.VERBOSE + 1 visitor.ASTVisitor.VERBOSE = visitor.ASTVisitor.VERBOSE + 1
if k == '-q': if k == '-q':
if sys.platform[:3]=="win":
f = open('nul', 'wb') # /dev/null fails on Windows...
else:
f = open('/dev/null', 'wb') f = open('/dev/null', 'wb')
sys.stdout = f sys.stdout = f
if not args: if not args:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment