create a real temporary file
This commit is contained in:
parent
a4e6affd24
commit
5d09cc3227
|
@ -21,6 +21,7 @@ import sys, os, time, string, logging
|
||||||
import common.hub, common.optparser
|
import common.hub, common.optparser
|
||||||
import common.jabber
|
import common.jabber
|
||||||
import socket, select, pickle
|
import socket, select, pickle
|
||||||
|
from tempfile import *
|
||||||
|
|
||||||
from common import i18n
|
from common import i18n
|
||||||
_ = i18n._
|
_ = i18n._
|
||||||
|
@ -137,9 +138,7 @@ else:
|
||||||
return self.stripHeaderFooter(output)
|
return self.stripHeaderFooter(output)
|
||||||
|
|
||||||
def verify(self, str, sign):
|
def verify(self, str, sign):
|
||||||
file = open('gpg_data', 'w+r')
|
file = TemporaryFile(prefix='gajim')
|
||||||
try: os.remove('gpg_data')
|
|
||||||
except: pass
|
|
||||||
fd = file.fileno()
|
fd = file.fileno()
|
||||||
file.write(str)
|
file.write(str)
|
||||||
file.seek(0)
|
file.seek(0)
|
||||||
|
|
Loading…
Reference in New Issue