summaryrefslogtreecommitdiff
path: root/sphinx/ext/imgmath.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-12-13 01:33:14 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-12-15 02:42:42 +0900
commit53917f228f9bfbb4607b6441119baeb129869b93 (patch)
tree4e87e2e8a2fc209f74a3675dc0f079bda78b6a3b /sphinx/ext/imgmath.py
parentf8a2e7aa8af27b9d90330d9d795ef20fe0158001 (diff)
downloadsphinx-git-53917f228f9bfbb4607b6441119baeb129869b93.tar.gz
Move to py3 mode for mypy (and remove many "type: ignore" comments)
Diffstat (limited to 'sphinx/ext/imgmath.py')
-rw-r--r--sphinx/ext/imgmath.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/ext/imgmath.py b/sphinx/ext/imgmath.py
index 31524bb84..3b70cb8fa 100644
--- a/sphinx/ext/imgmath.py
+++ b/sphinx/ext/imgmath.py
@@ -124,7 +124,7 @@ def compile_math(latex, builder):
"""Compile LaTeX macros for math to DVI."""
tempdir = ensure_tempdir(builder)
filename = path.join(tempdir, 'math.tex')
- with open(filename, 'w', encoding='utf-8') as f: # type: ignore
+ with open(filename, 'w', encoding='utf-8') as f:
f.write(latex)
# build latex command; old versions of latex don't have the