Skip to content

Commit

Permalink
Use temporary dict as globals
Browse files Browse the repository at this point in the history
  • Loading branch information
antonio-rojas committed Dec 22, 2024
1 parent b8cd5a6 commit cee808a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/misc/replace_dot_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def find_replacements(location, package_regex=None, verbose=False):
to_exec = to_exec.replace("'", '').replace('"', '')
if (to_exec[-1] == ','):
to_exec = to_exec[:-1]
glob = globals()
glob = dict()
exec(to_exec, glob)
except ModuleNotFoundError as err:
print(f'ModuleNotFoundError: {err} found when trying to execute {to_exec}')
Expand Down

0 comments on commit cee808a

Please sign in to comment.