file -> f

This commit is contained in:
Yann Leboulanger 2005-07-22 17:27:03 +00:00
parent dfb3a7081a
commit 4dd4de8dfc
1 changed files with 5 additions and 5 deletions

View File

@ -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()