From 3a4d432de92a3d026607affae11ef6d68f57dd22 Mon Sep 17 00:00:00 2001 From: Christophe Monniez Date: Fri, 28 Jun 2024 15:47:55 +0200 Subject: [PATCH] [FIX] runbot: add another missing opcode The COPY_FREE_VARS code was also added in python 3.11 and is needed by some python steps. --- runbot/models/build_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runbot/models/build_config.py b/runbot/models/build_config.py index 80a1b4c6..e9a6ef23 100644 --- a/runbot/models/build_config.py +++ b/runbot/models/build_config.py @@ -19,7 +19,7 @@ from odoo.tools.safe_eval import safe_eval, test_python_expr, _SAFE_OPCODES, to_ # to simplify some python step by wraping the content in a function to allow return statement and get closer to other # steps -_SAFE_OPCODES |= set(to_opcodes(['LOAD_DEREF', 'STORE_DEREF', 'LOAD_CLOSURE', 'MAKE_CELL'])) +_SAFE_OPCODES |= set(to_opcodes(['LOAD_DEREF', 'STORE_DEREF', 'LOAD_CLOSURE', 'MAKE_CELL', 'COPY_FREE_VARS'])) _logger = logging.getLogger(__name__)