summaryrefslogtreecommitdiff
path: root/sphinx/theming.py
diff options
context:
space:
mode:
authormitsuhiko <devnull@localhost>2009-07-14 11:43:39 +0200
committermitsuhiko <devnull@localhost>2009-07-14 11:43:39 +0200
commit966774d1cd9fa70043fab29eb22fcf980c6119df (patch)
tree3fc4ed76753adaa41ce5df64d24d503427d43071 /sphinx/theming.py
parent353d5d037c8962e3bffedc2d0531b297f963adfd (diff)
downloadsphinx-966774d1cd9fa70043fab29eb22fcf980c6119df.tar.gz
Write theme information payload binary, not as text. Otherwise windows users will be unhappy.
Diffstat (limited to 'sphinx/theming.py')
-rw-r--r--sphinx/theming.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/theming.py b/sphinx/theming.py
index e5807029..217dd81c 100644
--- a/sphinx/theming.py
+++ b/sphinx/theming.py
@@ -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()