From ae34f70782b895ab0225b00bbb411576a48cc8b5 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Tue, 14 Jul 2009 11:43:39 +0200 Subject: [PATCH] Write theme information payload binary, not as text. Otherwise windows users will be unhappy. --- sphinx/theming.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx/theming.py b/sphinx/theming.py index e58070293..217dd81c9 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()