summaryrefslogtreecommitdiff
path: root/sphinx/ext/imgmath.py
diff options
context:
space:
mode:
authorcocodrips <cocodrips@gmail.com>2018-12-26 11:31:44 +0900
committercocodrips <cocodrips@gmail.com>2018-12-26 11:31:50 +0900
commit827059be93426b83afd2fc7d823c48681e5f913a (patch)
treeec1893e5cf77acbb79d736ea3f841dc864781740 /sphinx/ext/imgmath.py
parent448181d9f97611d352c0c8ec21e55e8242db9d60 (diff)
parent99a7dca2160996e3189dfcc2176bbbbac531d5f3 (diff)
downloadsphinx-git-827059be93426b83afd2fc7d823c48681e5f913a.tar.gz
Merge remote-tracking branch 'upstream/master' into 5842-apidoc-extensions
Diffstat (limited to 'sphinx/ext/imgmath.py')
-rw-r--r--sphinx/ext/imgmath.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/sphinx/ext/imgmath.py b/sphinx/ext/imgmath.py
index d93d3fb50..377da12f1 100644
--- a/sphinx/ext/imgmath.py
+++ b/sphinx/ext/imgmath.py
@@ -17,7 +17,6 @@ from os import path
from subprocess import Popen, PIPE
from docutils import nodes
-from six import text_type
import sphinx
from sphinx.errors import SphinxError
@@ -290,7 +289,7 @@ def html_visit_math(self, node):
try:
fname, depth = render_math(self, '$' + node.astext() + '$')
except MathExtError as exc:
- msg = text_type(exc)
+ msg = str(exc)
sm = nodes.system_message(msg, type='WARNING', level=2,
backrefs=[], source=node.astext())
sm.walkabout(self)
@@ -317,7 +316,7 @@ def html_visit_displaymath(self, node):
try:
fname, depth = render_math(self, latex)
except MathExtError as exc:
- msg = text_type(exc)
+ msg = str(exc)
sm = nodes.system_message(msg, type='WARNING', level=2,
backrefs=[], source=node.astext())
sm.walkabout(self)