Skip to content

Commit 3d51e7b

Browse files
author
Matthias Koeppe
committed
src/sage/databases/findstat.py: Hide a legitimate .all import from relint
1 parent 9435a7e commit 3d51e7b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sage/databases/findstat.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1499,7 +1499,8 @@ def __call__(self, elt):
14991499
from sage.repl.preparse import preparse
15001500
try:
15011501
l = {}
1502-
code = "from sage.all import *\n" + preparse(self.sage_code())
1502+
environment = 'sage.all'
1503+
code = f"from {environment} import *\n" + preparse(self.sage_code())
15031504
exec(code, l)
15041505
except SyntaxError:
15051506
raise ValueError("could not execute verified code for %s" % self)

0 commit comments

Comments
 (0)