diff --git a/src/docgen/OpenDrawDoc.py b/src/docgen/OpenDrawDoc.py index 484d5547e..d0591a868 100644 --- a/src/docgen/OpenDrawDoc.py +++ b/src/docgen/OpenDrawDoc.py @@ -69,11 +69,11 @@ class OpenDrawDoc(DrawDoc.DrawDoc): self.filename = filename try: - self.content_xml = tempfile.TemporaryFile() + self.content_xml = tempfile.mktemp() self.f = open(self.content_xml,"wb") except: raise Errors.ReportError("Could not create %s" % self.filename) - + self.f.write('\n') self.f.write('\n') self.f.write('\n') self.f.write('\n') self.f.write('\n') def end_page(self):