From c47fa5b942a7eedc6d6143af80719e3794889ff7 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Wed, 22 Jan 2003 04:29:00 +0000 Subject: [PATCH] tempfile fixes svn: r1269 --- gramps2/src/docgen/OpenOfficeDoc.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gramps2/src/docgen/OpenOfficeDoc.py b/gramps2/src/docgen/OpenOfficeDoc.py index 80ce2b895..5d3938ec0 100644 --- a/gramps2/src/docgen/OpenOfficeDoc.py +++ b/gramps2/src/docgen/OpenOfficeDoc.py @@ -73,7 +73,7 @@ class OpenOfficeDoc(TextDoc.TextDoc): 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) @@ -330,7 +330,7 @@ class OpenOfficeDoc(TextDoc.TextDoc): os.unlink(self.styles_xml) def _write_styles_file(self): - self.styles_xml = tempfile.TemporaryFile() + self.styles_xml = tempfile.mktemp() self.f = open(self.styles_xml,"wb") self.f.write('\n') @@ -502,7 +502,7 @@ class OpenOfficeDoc(TextDoc.TextDoc): self.f.write(text) def _write_manifest(self): - self.manifest_xml = tempfile.TemporaryFile() + self.manifest_xml = tempfile.mktemp() self.f = open(self.manifest_xml,"wb") self.f.write('\n') self.f.write('\n') self.f.write('