file -> f
This commit is contained in:
parent
dfb3a7081a
commit
4dd4de8dfc
|
@ -125,14 +125,14 @@ else:
|
||||||
return str
|
return str
|
||||||
if not str:
|
if not str:
|
||||||
return ''
|
return ''
|
||||||
file = TemporaryFile(prefix='gajim')
|
f = TemporaryFile(prefix='gajim')
|
||||||
fd = file.fileno()
|
fd = f.fileno()
|
||||||
file.write(str)
|
f.write(str)
|
||||||
file.seek(0)
|
f.seek(0)
|
||||||
|
|
||||||
proc = self.run(['--verify', '--enable-special-filenames', '-', '-&%s'%fd], create_fhs=['stdin', 'status', 'stderr'])
|
proc = self.run(['--verify', '--enable-special-filenames', '-', '-&%s'%fd], create_fhs=['stdin', 'status', 'stderr'])
|
||||||
|
|
||||||
file.close()
|
f.close()
|
||||||
sign = self._addHeaderFooter(sign, 'SIGNATURE')
|
sign = self._addHeaderFooter(sign, 'SIGNATURE')
|
||||||
proc.handles['stdin'].write(sign)
|
proc.handles['stdin'].write(sign)
|
||||||
proc.handles['stdin'].close()
|
proc.handles['stdin'].close()
|
||||||
|
|
Loading…
Reference in New Issue