mirror of
https://github.com/python/cpython.git
synced 2025-11-10 02:21:40 +00:00
Fix the compiler package w.r.t. the new metaclass syntax.
(It is still broken w.r.t. the new nonlocal keyword.) Remove a series of debug prints I accidentally left in test_ast.py.
This commit is contained in:
parent
801dd73653
commit
d16e81aabe
7 changed files with 40 additions and 30 deletions
|
|
@ -786,7 +786,6 @@ def findDepth(self, insts, debug=0):
|
|||
'PRINT_EXPR': -1,
|
||||
'RETURN_VALUE': -1,
|
||||
'YIELD_VALUE': -1,
|
||||
'BUILD_CLASS': -2,
|
||||
'STORE_NAME': -1,
|
||||
'STORE_ATTR': -2,
|
||||
'DELETE_ATTR': -1,
|
||||
|
|
@ -804,6 +803,8 @@ def findDepth(self, insts, debug=0):
|
|||
'SETUP_FINALLY': 3,
|
||||
'FOR_ITER': 1,
|
||||
'WITH_CLEANUP': -1,
|
||||
'LOAD_BUILD_CLASS': 1,
|
||||
'STORE_LOCALS': -1,
|
||||
}
|
||||
# use pattern match
|
||||
patterns = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue