mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Write theme information payload binary, not as text. Otherwise windows users will be unhappy.
This commit is contained in:
parent
18dd1de18d
commit
ebeaf438ad
@ -78,7 +78,7 @@ class Theme(object):
|
||||
dirname = path.dirname(name)
|
||||
if not path.isdir(path.join(self.themedir, dirname)):
|
||||
os.makedirs(path.join(self.themedir, dirname))
|
||||
fp = open(path.join(self.themedir, name), 'w')
|
||||
fp = open(path.join(self.themedir, name), 'wb')
|
||||
fp.write(tinfo.read(name))
|
||||
fp.close()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user