def _getargspec(func):
        args, varargs, varkw, defaults, kwonlyargs, _, ann = \
            inspect.getfullargspec(func)  # pylint: disable=no-member
        if kwonlyargs or ann:
            raise ValueError('Function has keyword-only arguments or annotations'
                             ', use getfullargspec() API which can support them')
        return _ArgSpec(args, varargs, varkw, defaults)
Python 3 wrapper for inspect.getargsspec
dataset/ETHPy150Open saltstack/salt/salt/utils/args.py/_getargspec