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:
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()