def send_line(self, line):
        if not self.id2address:
            logging.info("not connected to anybody")
            return

        for otherid,address in self.id2address.copy().items():
            data = {"myid": self.myid, "line": line}
            r = requests.post(address, dumps(data),
                              headers={"CONTENT-TYPE": "application/json"})
            if r.status_code != 200:
                logging.error("ERROR %r SENDING line TO %s, removing node" % (r.status_code, address))
                del self.id2address[otherid]
dataset/ETHPy150Open hpk42/p4p/attic/friend_client.py/InputThread.send_line/original