Skip to content
Snippets Groups Projects
Commit 5d09cc32 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

create a real temporary file

parent a4e6affd
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment