fix syntax error

This commit is contained in:
Nikos Kouremenos 2005-11-08 13:43:23 +00:00
parent 0020731a36
commit 52a861afc2
1 changed files with 14 additions and 14 deletions

View File

@ -1,4 +1,4 @@
## common/GnuPG.py # ## common/GnuPG.py
## ##
## Gajim Team: ## Gajim Team:
## - Yann Le Boulanger <asterix@lagaule.org> ## - Yann Le Boulanger <asterix@lagaule.org>
@ -105,24 +105,24 @@ else:
return str return str
proc = self.run(['-b', '-u %s'%keyID], create_fhs=['stdin', 'stdout', 'status', 'stderr']) proc = self.run(['-b', '-u %s'%keyID], create_fhs=['stdin', 'stdout', 'status', 'stderr'])
proc.handles['stdin'].write(str) proc.handles['stdin'].write(str)
try: try:
proc.handles['stdin'].close() proc.handles['stdin'].close()
except IOError: except IOError:
pass pass
output = proc.handles['stdout'].read() output = proc.handles['stdout'].read()
try: try:
proc.handles['stdout'].close() proc.handles['stdout'].close()
proc.handles['stderr'].close() proc.handles['stderr'].close()
except IOError: except IOError:
pass pass
stat = proc.handles['status'] stat = proc.handles['status']
resp = self._read_response(stat) resp = self._read_response(stat)
try: try:
proc.handles['status'].close() proc.handles['status'].close()
except IOError: except IOError:
pass pass
try: proc.wait() try: proc.wait()
except IOError: pass except IOError: pass