def __repr__(self):
        """ Return a representation of internal state.
        """
        if self._rpc:
            # Connected state
            return "%s connected to %s [%s, up %s] via %r" % (
                self.__class__.__name__, self.engine_id, self.engine_software,
                fmt.human_duration(self.uptime, 0, 2, True).strip(), config.scgi_url,
            )
        else:
            # Unconnected state
            self.load_config()
            return "%s connectable via %r" % (
                self.__class__.__name__, config.scgi_url,
            )
def __repr__ ( self ) : if self . _rpc : return "%s connected to %s [%s, up %s] via %r" % ( self . __class__ . __name__ , self . engine_id , self . engine_software , fmt . human_duration ( self . uptime , 0 , 2 , True ) . strip ( ) , config . scgi_url , ) else : self . load_config ( ) return "%s connectable via %r" % ( self . __class__ . __name__ , config . scgi_url , )
Return a representation of internal state.