mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Don't use codecs for writing plists; breaks on Python 3.
This commit is contained in:
parent
d2d202f160
commit
c4d11c8ccc
@ -158,11 +158,8 @@ class AppleHelpBuilder(StandaloneHTMLBuilder):
|
||||
info_plist['HPDBookRemoteURL'] = self.config.applehelp_remote_url
|
||||
|
||||
self.info(bold('writing Info.plist... '), nonl=True)
|
||||
f = codecs.open(path.join(contents_dir, 'Info.plist'), 'w')
|
||||
try:
|
||||
with open(path.join(contents_dir, 'Info.plist'), 'w') as f:
|
||||
write_plist(info_plist, f)
|
||||
finally:
|
||||
f.close()
|
||||
self.info('done')
|
||||
|
||||
# Copy the icon, if one is supplied
|
||||
|
Loading…
Reference in New Issue
Block a user