print "[socket] connected to %s" % self.path
return sock
except socket.error, (errno, errstr):
- sys.stderror.write("[error] Connecting to socket failed: [%d] %s"
- % (errno, errstr))
+ sys.stderr.write("[error] Connecting to socket failed: [%d] %s"
+ % (errno, errstr))
return None
def _readline(self):
buf.append(data)
return ''.join(buf)
except socket.error, (errno, errstr):
- sys.stderror.write("[error] Reading from socket failed: [%d] %s"
- % (errno, errstr))
+ sys.stderr.write("[error] Reading from socket failed: [%d] %s"
+ % (errno, errstr))
self._sock = self._connect()
return None
try:
self._sock.close()
except socket.error, (errno, errstr):
- sys.stderror.write("[error] Closing socket failed: [%d] %s"
- % (errno, errstr))
+ sys.stderr.write("[error] Closing socket failed: [%d] %s"
+ % (errno, errstr))
if __name__ == '__main__':