From 5d09cc32278d364911653da2bd03e5612d5e1849 Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Mon, 20 Dec 2004 21:07:50 +0000
Subject: [PATCH] create a real temporary file

---
 Core/core.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/Core/core.py b/Core/core.py
index 315f532ad9..007c52c20e 100644
--- a/Core/core.py
+++ b/Core/core.py
@@ -21,6 +21,7 @@ import sys, os, time, string, logging
 import common.hub, common.optparser
 import common.jabber
 import socket, select, pickle
+from tempfile import *
 
 from common import i18n
 _ = i18n._
@@ -137,9 +138,7 @@ else:
 				return self.stripHeaderFooter(output)
 
 		def verify(self, str, sign):
-			file = open('gpg_data', 'w+r')
-			try: os.remove('gpg_data')
-			except: pass
+			file = TemporaryFile(prefix='gajim')
 			fd = file.fileno()
 			file.write(str)
 			file.seek(0)
-- 
GitLab