[FIX] safe_eval: add new py 3.10 GEN_START opcode

Part-of: odoo/odoo#91927
This commit is contained in:
Christophe Monniez
2022-05-23 08:29:53 +02:00
parent 22448d76da
commit f629cf5fee
+2
View File
@@ -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([