summaryrefslogtreecommitdiff
path: root/sphinx/builders/xml.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/builders/xml.py
parentf8a2e7aa8af27b9d90330d9d795ef20fe0158001 (diff)
downloadsphinx-git-53917f228f9bfbb4607b6441119baeb129869b93.tar.gz
Move to py3 mode for mypy (and remove many "type: ignore" comments)
Diffstat (limited to 'sphinx/builders/xml.py')
-rw-r--r--sphinx/builders/xml.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/builders/xml.py b/sphinx/builders/xml.py
index 3fdc21244..839f3ea49 100644
--- a/sphinx/builders/xml.py
+++ b/sphinx/builders/xml.py
@@ -95,7 +95,7 @@ class XMLBuilder(Builder):
outfilename = path.join(self.outdir, os_path(docname) + self.out_suffix)
ensuredir(path.dirname(outfilename))
try:
- with open(outfilename, 'w', encoding='utf-8') as f: # type: ignore
+ with open(outfilename, 'w', encoding='utf-8') as f:
f.write(self.writer.output)
except (IOError, OSError) as err:
logger.warning(__("error writing file %s: %s"), outfilename, err)