summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Baptiste Quenot <jbq@caraldi.com>2009-04-01 12:08:14 +0200
committerR. Tyler Ballance <tyler@slide.com>2009-04-01 16:54:31 -0700
commit158b56c8858f35669ee997ffd08a9e56aff3d75e (patch)
tree2b91aefa99a950d1c45075af49d6a25d449ed170
parent05803fb1c810a92ca392170687523180ddf6548e (diff)
downloadpython-cheetah-158b56c8858f35669ee997ffd08a9e56aff3d75e.tar.gz
Convert unicode compiled template to an utf8 char buffer when writing to a file
Signed-off-by: R. Tyler Ballance <tyler@slide.com>
-rw-r--r--[-rwxr-xr-x]src/CheetahWrapper.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CheetahWrapper.py b/src/CheetahWrapper.py
index 5a37f5e..776a394 100755..100644
--- a/src/CheetahWrapper.py
+++ b/src/CheetahWrapper.py
@@ -587,7 +587,7 @@ be named according to the same rules as Python modules.""" % tup)
sys.stdout.write(output)
else:
f = open(dst, 'w')
- f.write(output)
+ f.write(output.encode('utf8'))
f.close()