def insert_socket(self, socket):
        with self.llc.lock:
            try: insertable = type(socket) == type(self.sock_list[0])
            except __HOLE__: insertable = True
            if insertable:
                socket.bind(self.addr)
                self.sock_list.appendleft(socket)
            else: log.error("can't insert socket of different type")
            return insertable
dataset/ETHPy150Open javgh/greenaddress-pos-tools/nfc/llcp/llc.py/ServiceAccessPoint.insert_socket