summaryrefslogtreecommitdiff
path: root/sphinx/builders/applehelp.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-12-16 00:49:54 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-12-16 00:53:56 +0900
commit357b1ce2e6d713fb8cfb5644421bf5ded989f32a (patch)
treeb99e16522017a1eccc9f7ad5b353aba790746908 /sphinx/builders/applehelp.py
parent79eec90f36f5a74e24cfd6740126396fd6567e07 (diff)
downloadsphinx-git-357b1ce2e6d713fb8cfb5644421bf5ded989f32a.tar.gz
Replace pycompat.htmlescape() by html.escape()
Diffstat (limited to 'sphinx/builders/applehelp.py')
-rw-r--r--sphinx/builders/applehelp.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sphinx/builders/applehelp.py b/sphinx/builders/applehelp.py
index f7379e1ba..db2d983a4 100644
--- a/sphinx/builders/applehelp.py
+++ b/sphinx/builders/applehelp.py
@@ -9,6 +9,7 @@
:license: BSD, see LICENSE for details.
"""
+import html
import pipes
import plistlib
import shlex
@@ -24,7 +25,6 @@ from sphinx.util.console import bold # type: ignore
from sphinx.util.fileutil import copy_asset
from sphinx.util.matching import Matcher
from sphinx.util.osutil import copyfile, ensuredir, make_filename
-from sphinx.util.pycompat import htmlescape
if False:
# For type annotation
@@ -186,8 +186,8 @@ class AppleHelpBuilder(StandaloneHTMLBuilder):
logger.info(bold(__('building access page...')), nonl=True)
with open(path.join(language_dir, '_access.html'), 'w') as ft:
ft.write(access_page_template % {
- 'toc': htmlescape(toc, quote=True),
- 'title': htmlescape(self.config.applehelp_title)
+ 'toc': html.escape(toc, quote=True),
+ 'title': html.escape(self.config.applehelp_title)
})
logger.info(__('done'))