summaryrefslogtreecommitdiffstats
path: root/Demo
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2010-07-04 18:49:18 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2010-07-04 18:49:18 (GMT)
commit6a4e3c5f12bc4f835b396944c87b80fed56e4967 (patch)
tree85b288e51559ed9294ae5d541e6b77f81a957c20 /Demo
parentfeb3b758182df8ee94eb00b919af02a5d25ab515 (diff)
downloadcpython-6a4e3c5f12bc4f835b396944c87b80fed56e4967.zip
cpython-6a4e3c5f12bc4f835b396944c87b80fed56e4967.tar.gz
cpython-6a4e3c5f12bc4f835b396944c87b80fed56e4967.tar.bz2
Make Demo/parser/test_parser.py run.
Diffstat (limited to 'Demo')
-rwxr-xr-xDemo/parser/test_parser.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/Demo/parser/test_parser.py b/Demo/parser/test_parser.py
index 7d6db6b..ffa6630 100755
--- a/Demo/parser/test_parser.py
+++ b/Demo/parser/test_parser.py
@@ -11,19 +11,19 @@ def testChunk(t, fileName):
global _numFailed
print('----', fileName, end=' ')
try:
- ast = parser.suite(t)
- tup = parser.ast2tuple(ast)
- # this discards the first AST; a huge memory savings when running
+ st = parser.suite(t)
+ tup = parser.st2tuple(st)
+ # this discards the first ST; a huge memory savings when running
# against a large source file like Tkinter.py.
- ast = None
- new = parser.tuple2ast(tup)
+ st = None
+ new = parser.tuple2st(tup)
except parser.ParserError as err:
print()
print('parser module raised exception on input file', fileName + ':')
traceback.print_exc()
_numFailed = _numFailed + 1
else:
- if tup != parser.ast2tuple(new):
+ if tup != parser.st2tuple(new):
print()
print('parser module failed on input file', fileName)
_numFailed = _numFailed + 1