From e2588440e136917b81b12727187bce84db1213ea Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Wed, 22 Jan 2003 04:25:21 +0000 Subject: [PATCH] Fix temporary file handling svn: r1268 --- src/docgen/OpenDrawDoc.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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):