def __repr__(self):
        """Render a string representation of :class:`Hook` instance."""
        cls = self.__class__
        return '%s.%s(callback=%r, failsafe=%r, priority=%r, %s)' % (
            cls.__module__,
            cls.__name__,
            self.callback,
            self.failsafe,
            self.priority,
            ', '.join(['%s=%r' % (k, v) for k, v in self.kwargs.items()]),
        )
Render a string representation of :class:`Hook` instance.
cherrypy/_cprequest.py