You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
Small typos
This commit is contained in:
@@ -45,7 +45,7 @@ class PythonParser(GenericASTBuilder):
|
|||||||
super(PythonParser, self).__init__(SyntaxTree, start, debug)
|
super(PythonParser, self).__init__(SyntaxTree, start, debug)
|
||||||
# FIXME: customize per python parser version
|
# FIXME: customize per python parser version
|
||||||
|
|
||||||
# These are the non-terminal we should collect into a list.
|
# These are the non-terminals we should collect into a list.
|
||||||
# For example instead of:
|
# For example instead of:
|
||||||
# stmts -> stmts stmt -> stmts stmt stmt ...
|
# stmts -> stmts stmt -> stmts stmt stmt ...
|
||||||
# collect as stmts -> stmt stmt ...
|
# collect as stmts -> stmt stmt ...
|
||||||
|
@@ -709,6 +709,8 @@ class Python3Parser(PythonParser):
|
|||||||
rule = ('load_closure ::= %s%s' % (('LOAD_CLOSURE ' * v), opname))
|
rule = ('load_closure ::= %s%s' % (('LOAD_CLOSURE ' * v), opname))
|
||||||
self.add_unique_rule(rule, opname, token.attr, customize)
|
self.add_unique_rule(rule, opname, token.attr, customize)
|
||||||
if not is_LOAD_CLOSURE or v == 0:
|
if not is_LOAD_CLOSURE or v == 0:
|
||||||
|
# We do this complicated test to speed up parsing of
|
||||||
|
# pathelogically long literals, especially those over 1024.
|
||||||
build_count = token.attr
|
build_count = token.attr
|
||||||
thousands = (build_count//1024)
|
thousands = (build_count//1024)
|
||||||
thirty32s = ((build_count//32) % 32)
|
thirty32s = ((build_count//32) % 32)
|
||||||
|
Reference in New Issue
Block a user