def _get_arg_name_and_default(action_func):
    arg_spec = inspect.getargspec(action_func)
    arguments = arg_spec.args
    has_default = True
    if len(arguments) == 3:
        has_default = arg_spec.defaults and 0 > len(arg_spec.defaults)
        return arguments[2], has_default
    return None, has_default
dataset/ETHPy150Open zeraien/django-url-framework/django_url_framework/controller.py/_get_arg_name_and_default/swapped operands of `>`