Skip to content

Commit

Permalink
[ADD] safe_eval: allow YIELD_VALUE, used e.g. for generator comprehen…
Browse files Browse the repository at this point in the history
…sion
  • Loading branch information
odony committed Jul 30, 2014
1 parent a1f307b commit c60dc65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openerp/tools/safe_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
'STORE_NAME', 'GET_ITER', 'FOR_ITER', 'LIST_APPEND', 'DELETE_NAME',
'JUMP_FORWARD', 'JUMP_IF_TRUE', 'JUMP_IF_FALSE', 'JUMP_ABSOLUTE',
'MAKE_FUNCTION', 'SLICE+0', 'SLICE+1', 'SLICE+2', 'SLICE+3', 'BREAK_LOOP',
'CONTINUE_LOOP', 'RAISE_VARARGS',
'CONTINUE_LOOP', 'RAISE_VARARGS', 'YIELD_VALUE',
# New in Python 2.7 - http://bugs.python.org/issue4715 :
'JUMP_IF_FALSE_OR_POP', 'JUMP_IF_TRUE_OR_POP', 'POP_JUMP_IF_FALSE',
'POP_JUMP_IF_TRUE', 'SETUP_EXCEPT', 'END_FINALLY',
Expand Down

0 comments on commit c60dc65

Please sign in to comment.