diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2010-07-01 21:37:10 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2010-07-01 21:37:10 -0400 |
commit | 2c84d43573a4558fd70f9a7edc4ec7f7b90b4ff9 (patch) | |
tree | 46ef0dd18fc7ac128257562712dbfa753a01fc51 /coverage/parser.py | |
parent | eeed798e0b95239f440d237ef7f4a1540ed42ad1 (diff) | |
download | python-coveragepy-2c84d43573a4558fd70f9a7edc4ec7f7b90b4ff9.tar.gz |
Python 3.2 has a new opcode: SETUP_WITH
Diffstat (limited to 'coverage/parser.py')
-rw-r--r-- | coverage/parser.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/coverage/parser.py b/coverage/parser.py index 8285d43..9bce98a 100644 --- a/coverage/parser.py +++ b/coverage/parser.py @@ -265,7 +265,9 @@ OPS_CHUNK_END = _opcode_set( OPS_CHUNK_BEGIN = _opcode_set('JUMP_ABSOLUTE', 'JUMP_FORWARD') # Opcodes that push a block on the block stack. -OPS_PUSH_BLOCK = _opcode_set('SETUP_LOOP', 'SETUP_EXCEPT', 'SETUP_FINALLY') +OPS_PUSH_BLOCK = _opcode_set( + 'SETUP_LOOP', 'SETUP_EXCEPT', 'SETUP_FINALLY', 'SETUP_WITH' + ) # Block types for exception handling. OPS_EXCEPT_BLOCKS = _opcode_set('SETUP_EXCEPT', 'SETUP_FINALLY') |