no need of status fd

This commit is contained in:
Yann Leboulanger 2005-07-22 17:26:05 +00:00
parent d67179053b
commit dfb3a7081a
1 changed files with 1 additions and 4 deletions

View File

@ -86,7 +86,7 @@ else:
def decrypt(self, str, keyID): def decrypt(self, str, keyID):
if not USE_GPG: if not USE_GPG:
return str return str
proc = self.run(['--decrypt', '-q', '-u %s'%keyID], create_fhs=['stdin', 'stdout', 'status']) proc = self.run(['--decrypt', '-q', '-u %s'%keyID], create_fhs=['stdin', 'stdout'])
enc = self._addHeaderFooter(str, 'MESSAGE') enc = self._addHeaderFooter(str, 'MESSAGE')
proc.handles['stdin'].write(enc) proc.handles['stdin'].write(enc)
proc.handles['stdin'].close() proc.handles['stdin'].close()
@ -94,9 +94,6 @@ else:
output = proc.handles['stdout'].read() output = proc.handles['stdout'].read()
proc.handles['stdout'].close() proc.handles['stdout'].close()
resp = proc.handles['status'].read()
proc.handles['status'].close()
try: proc.wait() try: proc.wait()
except IOError: pass except IOError: pass
return output return output