(self, update)
Deal with an update from Tor; either creates a new Addr object
        or find existing one and calls update() on it.
Deal with an update from Tor; either creates a new Addr object
        or find existing one and calls update() on it.
Deal with an update from Tor ; either creates a new Addr object or find existing one and calls update () on it .
def update(self, update):
        """
        Deal with an update from Tor; either creates a new Addr object
        or find existing one and calls update() on it.
        """

        params = shlex.split(update)
        if params[0] in self.addr:
            self.addr[params[0]].update(*params)

        else:
            a = Addr(self)
            # add both name and IP address
            self.addr[params[0]] = a
            self.addr[params[1]] = a
            a.update(*params)
            self.notify("addrmap_added", *[a], **{})
def update ( self , update ) : params = shlex . split ( update ) if params [ 0 ] in self . addr : self . addr [ params [ 0 ] ] . update ( * params ) else : a = Addr ( self ) # add both name and IP address self . addr [ params [ 0 ] ] = a self . addr [ params [ 1 ] ] = a a . update ( * params ) self . notify ( "addrmap_added" , * [ a ] , * * { } )