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

Commit

Permalink
src/sage/rings/rational.pyx: Move import of mathml into method
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Sep 19, 2021
1 parent c254b74 commit d98d3cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/rings/rational.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ from cysignals.signals cimport sig_on, sig_off
import operator
import fractions

from sage.misc.mathml import mathml
from sage.arith.long cimport pyobject_to_long, integer_check_long_py
from sage.cpython.string cimport char_to_str, str_to_bytes

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

0 comments on commit d98d3cc

Please sign in to comment.