Skip to content
Snippets Groups Projects
Commit 7849519c authored by Christophe Monniez's avatar Christophe Monniez
Browse files

[FIX] safe_eval: add new py 3.10 GEN_START opcode

cherry-pick backport of cf9161b6

Part-of: odoo/odoo#138754
parent 89995343
No related branches found
No related tags found
No related merge requests found
......@@ -95,6 +95,7 @@ _EXPR_OPCODES = _CONST_OPCODES.union(set(opmap[x] for x in [
] if x in opmap))
_SAFE_OPCODES = _EXPR_OPCODES.union(set(opmap[x] for x in [
'GEN_START', # added in 3.10
'POP_BLOCK', 'POP_EXCEPT', # Seems to be a special-case of POP_BLOCK for P3
'SETUP_LOOP', 'BREAK_LOOP', 'CONTINUE_LOOP',
'MAKE_FUNCTION', 'CALL_FUNCTION',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment