def _report_connection_status(self, status):
        """ Report a change in the connection status to any listeners """
        for listener in self._connection_listeners:
            try:
                self.logger.debug("[%s:%s] connection listener: %x (%s)",
                                  self.fn or self.host, self.port,
                                  id(listener), type(listener).__name__)
                listener.new_connection_status(status)
            except Exception:  # pylint: disable=broad-except
                self.logger.exception(
                    "[%s:%s] Exception thrown when calling connection "
                    "listener", self.fn or self.host, self.port)
def _report_connection_status ( self , status ) : for listener in self . _connection_listeners : try : self . logger . debug ( "[%s:%s] connection listener: %x (%s)" , self . fn or self . host , self . port , id ( listener ) , type ( listener ) . __name__ ) listener . new_connection_status ( status ) except Exception : self . logger . exception ( "[%s:%s] Exception thrown when calling connection " "listener" , self . fn or self . host , self . port )
Report a change in the connection status to any listeners