From d644c933f5bebd5aa4e1c32ef19a49a41dd75d77 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 --- gramps2/src/docgen/OpenDrawDoc.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gramps2/src/docgen/OpenDrawDoc.py b/gramps2/src/docgen/OpenDrawDoc.py index 484d5547e..d0591a868 100644 --- a/gramps2/src/docgen/OpenDrawDoc.py +++ b/gramps2/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):