def getargspec(self, method):
    "Call inspect's getargspec function."
    with warnings.catch_warnings():
        if (tools.PYTHON_VERSION >= (3, 5)):
            warnings.simplefilter('ignore', DeprecationWarning)
        return inspect.getargspec(method)
Call inspect's getargspec function.
def getargspec(self, method):
    
    with warnings.catch_warnings():
        if (tools.PYTHON_VERSION >= (3, 5)):
            warnings.simplefilter('ignore', DeprecationWarning)
        return inspect.getargspec(method)