(method)
return doc
Return a formatted doc string, via inspect.getdoc, from the
        specified XMLRPCController method

        The method's help attribute is used if it exists, otherwise the
        method's doc string is used.
Return a formatted doc string, via inspect.getdoc, from the
        specified XMLRPCController method
Return a formatted doc string via inspect . getdoc from the specified XMLRPCController method
def getdoc(method):
        """Return a formatted doc string, via inspect.getdoc, from the
        specified XMLRPCController method

        The method's help attribute is used if it exists, otherwise the
        method's doc string is used.
        """
        help = getattr(method, 'help', None)
        if help is None:
            help = method.__doc__
        doc = inspect.getdoc(MethodHelp(help))
        if doc is None:
            return ''
        return doc
def getdoc ( method ) : help = getattr ( method , 'help' , None ) if help is None : help = method . __doc__ doc = inspect . getdoc ( MethodHelp ( help ) ) if doc is None : return '' return doc