diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-12-02 21:01:56 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-12-02 22:28:28 +0900 |
commit | a4749ca46839338329c446cba671dac008201e3e (patch) | |
tree | 94ae28f0358fa323f2b9e89ac7bcf010fd4f6428 /sphinx/builders/applehelp.py | |
parent | 28add225f2f11d76b7720ed4b7b76aacea6932b3 (diff) | |
download | sphinx-git-a4749ca46839338329c446cba671dac008201e3e.tar.gz |
Fix annotations for builders
Diffstat (limited to 'sphinx/builders/applehelp.py')
-rw-r--r-- | sphinx/builders/applehelp.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sphinx/builders/applehelp.py b/sphinx/builders/applehelp.py index 309053d56..9add1bbd1 100644 --- a/sphinx/builders/applehelp.py +++ b/sphinx/builders/applehelp.py @@ -166,8 +166,8 @@ class AppleHelpBuilder(StandaloneHTMLBuilder): info_plist['HPDBookRemoteURL'] = self.config.applehelp_remote_url logger.info(bold(__('writing Info.plist... ')), nonl=True) - with open(path.join(contents_dir, 'Info.plist'), 'wb') as f: - plistlib.dump(info_plist, f) # type: ignore + with open(path.join(contents_dir, 'Info.plist'), 'wb') as fb: + plistlib.dump(info_plist, fb) # type: ignore logger.info(__('done')) # Copy the icon, if one is supplied @@ -186,8 +186,8 @@ class AppleHelpBuilder(StandaloneHTMLBuilder): # Build the access page logger.info(bold(__('building access page...')), nonl=True) - with open(path.join(language_dir, '_access.html'), 'w') as f: - f.write(access_page_template % { + 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) }) |