From e4ea183c7f8943a3c94631d69f540786ed9b8ef4 Mon Sep 17 00:00:00 2001 From: Faraphel Date: Mon, 8 Aug 2022 18:06:25 +0200 Subject: [PATCH] changed compile filename from to for the errors --- source/safe_eval/safe_eval.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/safe_eval/safe_eval.py b/source/safe_eval/safe_eval.py index 6768559..e18d8c0 100644 --- a/source/safe_eval/safe_eval.py +++ b/source/safe_eval/safe_eval.py @@ -116,4 +116,4 @@ def safe_eval(template: str, env: dict[str, any] = None, macros: dict[str, str] ast.fix_missing_locations(expression) # return the evaluated formula - return eval(compile(expression, "", "eval"), globals_, locals_) + return eval(compile(expression, "", "eval"), globals_, locals_)