From: W. Trevor King Date: Sat, 24 Mar 2012 01:01:21 +0000 (-0400) Subject: Fix a couple of syntax goofs. X-Git-Tag: v0.2~19 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=34a44c40dadf27be9f01ef2fc9ff919f8f25a416;p=pyassuan.git Fix a couple of syntax goofs. --- diff --git a/bin/pinentry.py b/bin/pinentry.py index 3bc6771..05780fe 100755 --- a/bin/pinentry.py +++ b/bin/pinentry.py @@ -192,7 +192,7 @@ class PinEntry (_server.AssuanServer): fd_path = _os_path.join(path, 'fd', '0') try: link = _os.readlink(fd_path) - except OSError, e: + except OSError as e: self.logger.debug('not our process: {}'.format(e)) continue # permission denied (not one of our processes) if link != tty_name: diff --git a/pyassuan/server.py b/pyassuan/server.py index ff4857f..e7c36a9 100644 --- a/pyassuan/server.py +++ b/pyassuan/server.py @@ -72,7 +72,7 @@ class AssuanServer (object): self.output = None def handle_requests(self): - self.send_response(self, _common.Response('OK', 'Your orders please')) + self.send_response(_common.Response('OK', 'Your orders please')) self.output.flush() while not self.stop: line = self.input.readline()