Merge branch 'python-3.0-to-3.2' into python-2.4-to-2.7

This commit is contained in:
rocky
2024-07-12 10:18:46 -04:00
2 changed files with 5 additions and 1 deletions

View File

@@ -20,7 +20,9 @@ Step 2: Run the test:
test_pyenvlib --mylib --verify # decompile verify 'mylib' test_pyenvlib --mylib --verify # decompile verify 'mylib'
""" """
from __future__ import print_function # Does not work on 2.5.9 or before
# from __future__ import print_function
>>>>>>> python-3.0-to-3.2
import os import os
import re import re
import shutil import shutil

View File

@@ -65,6 +65,8 @@ class Python25Parser(Python26Parser):
kvlist ::= kvlist kv kvlist ::= kvlist kv
kv ::= DUP_TOP expr ROT_TWO expr STORE_SUBSCR kv ::= DUP_TOP expr ROT_TWO expr STORE_SUBSCR
_ifstmts_jump ::= c_stmts_opt COME_FROM JUMP_ABSOLUTE COME_FROM POP_TOP
""" """
def customize_grammar_rules(self, tokens, customize): def customize_grammar_rules(self, tokens, customize):