no need of status fd
This commit is contained in:
parent
d67179053b
commit
dfb3a7081a
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue