From 52a861afc21069de6daa765a5e74e067e3b3ece2 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Tue, 8 Nov 2005 13:43:23 +0000 Subject: [PATCH] fix syntax error --- src/common/GnuPG.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/common/GnuPG.py b/src/common/GnuPG.py index c29131247..826b9fb6b 100644 --- a/src/common/GnuPG.py +++ b/src/common/GnuPG.py @@ -1,4 +1,4 @@ -## common/GnuPG.py +# ## common/GnuPG.py ## ## Gajim Team: ## - Yann Le Boulanger @@ -105,24 +105,24 @@ else: return str proc = self.run(['-b', '-u %s'%keyID], create_fhs=['stdin', 'stdout', 'status', 'stderr']) proc.handles['stdin'].write(str) - try: - proc.handles['stdin'].close() - except IOError: - pass + try: + proc.handles['stdin'].close() + except IOError: + pass output = proc.handles['stdout'].read() - try: - proc.handles['stdout'].close() - proc.handles['stderr'].close() - except IOError: - pass + try: + proc.handles['stdout'].close() + proc.handles['stderr'].close() + except IOError: + pass stat = proc.handles['status'] resp = self._read_response(stat) - try: - proc.handles['status'].close() - except IOError: - pass + try: + proc.handles['status'].close() + except IOError: + pass try: proc.wait() except IOError: pass