summaryrefslogtreecommitdiff
path: root/sphinx/ext/pngmath.py
diff options
context:
space:
mode:
authorTakayuki Shimizukawa <shimizukawa@gmail.com>2014-05-01 22:54:09 +0900
committerTakayuki Shimizukawa <shimizukawa@gmail.com>2014-05-01 22:54:09 +0900
commitba4dcaa8dd5eeec72940a3aebce80d756bcb921d (patch)
treedbe7b93f2cba9f643a2301c906b16255bdcbf47b /sphinx/ext/pngmath.py
parent5c6d6c8e24237bf4dd7225f44ea330e37da4f2d9 (diff)
downloadsphinx-git-ba4dcaa8dd5eeec72940a3aebce80d756bcb921d.tar.gz
use b prefix for bytes instead of sphinx.pycompat.b function.
Diffstat (limited to 'sphinx/ext/pngmath.py')
-rw-r--r--sphinx/ext/pngmath.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/ext/pngmath.py b/sphinx/ext/pngmath.py
index 9bc1e546a..e0fed6e0d 100644
--- a/sphinx/ext/pngmath.py
+++ b/sphinx/ext/pngmath.py
@@ -27,7 +27,7 @@ from docutils import nodes
from sphinx.errors import SphinxError
from sphinx.util.png import read_png_depth, write_png_depth
from sphinx.util.osutil import ensuredir, ENOENT
-from sphinx.util.pycompat import b, sys_encoding
+from sphinx.util.pycompat import sys_encoding
from sphinx.ext.mathbase import setup_math as mathbase_setup, wrap_displaymath
class MathExtError(SphinxError):
@@ -67,7 +67,7 @@ DOC_BODY_PREVIEW = r'''
\end{document}
'''
-depth_re = re.compile(b(r'\[\d+ depth=(-?\d+)\]'))
+depth_re = re.compile(br'\[\d+ depth=(-?\d+)\]')
def render_math(self, math):
"""Render the LaTeX math expression *math* using latex and dvipng.