def _format_callback_source(func, args): func_repr = _format_callback(func, args, None) source = _get_function_source(func) if source: # pragma: no cover func_repr += ' at %s:%s' % source return func_repr
def get_function_source(func): source = format_helpers._get_function_source(func) if source is None: raise ValueError("unable to get the source of %r" % (func, )) return source
def get_function_source(func): source = format_helpers._get_function_source(func) if source is None: raise ValueError("unable to get the source of %r" % (func,)) return source