Write theme information payload binary, not as text. Otherwise windows users will be unhappy.

This commit is contained in:
Armin Ronacher 2009-07-14 11:43:39 +02:00
parent 18dd1de18d
commit ebeaf438ad

View File

@ -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()