| Index: presubmit_support.py
|
| diff --git a/presubmit_support.py b/presubmit_support.py
|
| index fa2261a7ff1130e838fce841d9e21b3463446964..85b3a3f70ccdc096fb807dd5978de18c1e7fb79b 100755
|
| --- a/presubmit_support.py
|
| +++ b/presubmit_support.py
|
| @@ -897,9 +897,9 @@ class GetTrySlavesExecuter(object):
|
| if function_name in context:
|
| get_preferred_try_slaves = context[function_name]
|
| function_info = inspect.getargspec(get_preferred_try_slaves)
|
| - if len(function_info.args) == 1:
|
| + if len(function_info[0]) == 1:
|
| result = get_preferred_try_slaves(project)
|
| - elif len(function_info.args) == 2:
|
| + elif len(function_info[0]) == 2:
|
| result = get_preferred_try_slaves(project, change)
|
| else:
|
| result = get_preferred_try_slaves()
|
|
|