[FIX] safe_eval: add new py 3.10 GEN_START opcode
Part-of: odoo/odoo#91927
This commit is contained in:
@@ -86,6 +86,8 @@ _EXPR_OPCODES = _CONST_OPCODES.union(to_opcodes([
|
||||
# specialised comparisons
|
||||
'IS_OP', 'CONTAINS_OP',
|
||||
'DICT_MERGE', 'DICT_UPDATE',
|
||||
# Basically used in any "generator literal"
|
||||
'GEN_START', # added in 3.10 but already removed from 3.11.
|
||||
])) - _BLACKLIST
|
||||
|
||||
_SAFE_OPCODES = _EXPR_OPCODES.union(to_opcodes([
|
||||
|
||||
Reference in New Issue
Block a user