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

Commit d98d3cc

Browse files
author
Matthias Koeppe
committed
src/sage/rings/rational.pyx: Move import of mathml into method
1 parent c254b74 commit d98d3cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sage/rings/rational.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ from cysignals.signals cimport sig_on, sig_off
6565
import operator
6666
import fractions
6767

68-
from sage.misc.mathml import mathml
6968
from sage.arith.long cimport pyobject_to_long, integer_check_long_py
7069
from sage.cpython.string cimport char_to_str, str_to_bytes
7170

@@ -1082,6 +1081,7 @@ cdef class Rational(sage.structure.element.FieldElement):
10821081
if self.denom() == 1:
10831082
return '<mn>%s</mn>'%(self.numer())
10841083
else:
1084+
from sage.misc.mathml import mathml
10851085
t = ''
10861086
if self < 0:
10871087
t = t + '<mo>-</mo>'

0 commit comments

Comments
 (0)