dwhswenson/contact_map

View on GitHub
contact_map/py_2_3.py

Summary

Maintainability
A
0 mins
Test Coverage
import inspect

try:
    getargspec = inspect.getfullargspec
except AttributeError:  # -no-cov-
    getargspec = inspect.getargspec

def inspect_method_arguments(method, no_self=True):
    args = getargspec(method).args
    if no_self:
        args = [arg for arg in args if arg != 'self']
    return args