diff options
author | Guido van Rossum <guido@python.org> | 2007-03-19 17:56:01 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-03-19 17:56:01 (GMT) |
commit | d16e81aabe5448a90640694d57cdaefddf3a1a9f (patch) | |
tree | 1d422ec1ee0944f60ceedd91f69af4034cb170e6 /Lib/compiler/pyassem.py | |
parent | 801dd736531f7d6db57a1dab80fe6daa37e0a0b0 (diff) | |
download | cpython-d16e81aabe5448a90640694d57cdaefddf3a1a9f.zip cpython-d16e81aabe5448a90640694d57cdaefddf3a1a9f.tar.gz cpython-d16e81aabe5448a90640694d57cdaefddf3a1a9f.tar.bz2 |
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.
Diffstat (limited to 'Lib/compiler/pyassem.py')
-rw-r--r-- | Lib/compiler/pyassem.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/compiler/pyassem.py b/Lib/compiler/pyassem.py index f665c54..2dcc8db 100644 --- a/Lib/compiler/pyassem.py +++ b/Lib/compiler/pyassem.py @@ -786,7 +786,6 @@ class StackDepthTracker: '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 @@ class StackDepthTracker: 'SETUP_FINALLY': 3, 'FOR_ITER': 1, 'WITH_CLEANUP': -1, + 'LOAD_BUILD_CLASS': 1, + 'STORE_LOCALS': -1, } # use pattern match patterns = [ |