Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Demo/parser/test_parser.py

    r2 r391  
    1212    print '----', fileName,
    1313    try:
    14         ast = parser.suite(t)
    15         tup = parser.ast2tuple(ast)
    16         # this discards the first AST; a huge memory savings when running
     14        st = parser.suite(t)
     15        tup = parser.st2tuple(st)
     16        # this discards the first ST; a huge memory savings when running
    1717        # against a large source file like Tkinter.py.
    18         ast = None
    19         new = parser.tuple2ast(tup)
     18        st = None
     19        new = parser.tuple2st(tup)
    2020    except parser.ParserError, err:
    2121        print
     
    2424        _numFailed = _numFailed + 1
    2525    else:
    26         if tup != parser.ast2tuple(new):
     26        if tup != parser.st2tuple(new):
    2727            print
    2828            print 'parser module failed on input file', fileName
Note: See TracChangeset for help on using the changeset viewer.