Fix a couple of syntax goofs.
authorW. Trevor King <wking@drexel.edu>
Sat, 24 Mar 2012 01:01:21 +0000 (21:01 -0400)
committerW. Trevor King <wking@drexel.edu>
Sat, 24 Mar 2012 01:01:21 +0000 (21:01 -0400)
bin/pinentry.py
pyassuan/server.py

index 3bc6771f3fc32278dc9edd3a9c494c1c938a3b81..05780fe92972189c3ceac90980d491e6e6a4d849 100755 (executable)
@@ -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:
index ff4857f0ba2aa71f073bbe3d484306df905e448f..e7c36a9bf04fd6c35312b84518c2687cd2711269 100644 (file)
@@ -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()