treebuilder: decode escape sequences in the 'append' command

Note that this might not work in python3 (we might need to encode the
data to utf8 before we can decode the escape sequences).
This commit is contained in:
Will Woods 2011-06-27 19:24:05 -04:00
parent d1266ff4e9
commit 9cd0ac09d1

View File

@ -288,7 +288,7 @@ class TemplateRunner(object):
def append(self, filename, data):
with open(self._out(filename), "a") as fobj:
fobj.write(data+"\n")
fobj.write(data.decode('string_escape')+"\n")
def treeinfo(self, section, key, *valuetoks):
if section not in self.results.treeinfo: