From 835fcbd849ee4ac5dfc37f7cfcbbb71c0807b360 Mon Sep 17 00:00:00 2001 From: Akhil Narang Date: Fri, 3 Oct 2025 00:11:40 +0530 Subject: [PATCH] chore: use our copy of protected_inplacevar Signed-off-by: Akhil Narang --- frappe/utils/safe_exec.py | 2 +- pyproject.toml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/frappe/utils/safe_exec.py b/frappe/utils/safe_exec.py index 17726c15db..b793c59e43 100644 --- a/frappe/utils/safe_exec.py +++ b/frappe/utils/safe_exec.py @@ -13,7 +13,6 @@ from typing import TYPE_CHECKING, Any import orjson import RestrictedPython.Guards -from AccessControl.ZopeGuards import protected_inplacevar from RestrictedPython import PrintCollector, compile_restricted, safe_globals from RestrictedPython.transformer import RestrictingNodeTransformer @@ -33,6 +32,7 @@ from frappe.model.rename_doc import rename_doc from frappe.modules import scrub from frappe.utils.background_jobs import enqueue, get_jobs from frappe.utils.caching import site_cache +from frappe.utils.inplacevar import protected_inplacevar from frappe.utils.number_format import NumberFormat from frappe.utils.response import json_handler from frappe.website.utils import get_next_link, get_toc diff --git a/pyproject.toml b/pyproject.toml index 3fa74f7d6c..2984487c23 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,7 +26,6 @@ dependencies = [ "PyQRCode~=1.2.1", "PyYAML~=6.0.2", "RestrictedPython~=8.0", - "AccessControl~=7.2", "WeasyPrint==66.0", "pydyf==0.11.0", "Werkzeug==3.1.3",