diff options
| author | mitsuhiko <devnull@localhost> | 2009-07-14 11:43:39 +0200 |
|---|---|---|
| committer | mitsuhiko <devnull@localhost> | 2009-07-14 11:43:39 +0200 |
| commit | 966774d1cd9fa70043fab29eb22fcf980c6119df (patch) | |
| tree | 3fc4ed76753adaa41ce5df64d24d503427d43071 /sphinx/theming.py | |
| parent | 353d5d037c8962e3bffedc2d0531b297f963adfd (diff) | |
| download | sphinx-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.py | 2 |
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() |
