Remove temp file in render_xml

Fixes an incompatibility in Windows
This commit is contained in:
jfdesrochers 2015-07-16 02:46:38 -04:00
parent dcf644ab7c
commit f0e0e2de38

View File

@ -59,8 +59,6 @@ class DocxTemplate(object):
return src_xml
def render_xml(self,src_xml,context):
with open('/tmp/titi','w') as fh:
fh.write(src_xml)
template = Template(src_xml)
dst_xml = template.render(context)
dst_xml = dst_xml.replace('{_{','{{').replace('}_}','}}').replace('{_%','{%').replace('%_}','%}')