Merge branch 'master' into python-2.4

This commit is contained in:
rocky
2018-07-15 12:40:16 -04:00
10 changed files with 67 additions and 67 deletions

View File

@@ -26,13 +26,13 @@ that a later phase can turn into a sequence of ASCII text.
"""
from uncompyle6.parser import PythonParser, PythonParserSingle, nop_func
from uncompyle6.parsers.astnode import AST
from uncompyle6.parsers.treenode import SyntaxTree
from spark_parser import DEFAULT_DEBUG as PARSER_DEFAULT_DEBUG
class Python2Parser(PythonParser):
def __init__(self, debug_parser=PARSER_DEFAULT_DEBUG):
super(Python2Parser, self).__init__(AST, 'stmts', debug=debug_parser)
super(Python2Parser, self).__init__(SyntaxTree, 'stmts', debug=debug_parser)
self.new_rules = set()
def p_print2(self, args):