Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 22f125b

Browse files
author
Matthias Koeppe
committed
src/sage/misc/latex.py: Move import from sage.misc.sage_eval into method
1 parent 52915b6 commit 22f125b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sage/misc/latex.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
import shutil
3232
from subprocess import call, PIPE
3333

34-
from sage.misc import sage_eval
3534
from sage.misc.cachefunc import cached_function, cached_method
3635
from sage.misc.sage_ostools import have_program
3736
from sage.misc.temporary_file import tmp_dir
@@ -1015,6 +1014,7 @@ def _latex_preparse(self, s, locals):
10151014
sage: sage.misc.latex.Latex()._latex_preparse(r'\sage{s}', locals())
10161015
'2'
10171016
"""
1017+
from sage.misc.sage_eval import sage_eval
10181018
i0 = -1
10191019
while True:
10201020
i = s.find('\\sage{')
@@ -1028,7 +1028,7 @@ def _latex_preparse(self, s, locals):
10281028

10291029
var = t[:j]
10301030
try:
1031-
k = str(latex(sage_eval.sage_eval(var, locals)))
1031+
k = str(latex(sage_eval(var, locals)))
10321032
except Exception as msg:
10331033
print(msg)
10341034
k = '\\mbox{\\rm [%s undefined]}' % var

0 commit comments

Comments
 (0)