def getfullargspec(f):
        "A quick and dirty replacement for getfullargspec for Python 2.X"
        return FullArgSpec._make(inspect.getargspec(f) + ([], None, {}))
A quick and dirty replacement for getfullargspec for Python 2.X
pyinstrument/vendor/decorator.py