summaryrefslogtreecommitdiff
path: root/igor.py
diff options
context:
space:
mode:
Diffstat (limited to 'igor.py')
-rw-r--r--igor.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/igor.py b/igor.py
index e89808a9..3aa9d5ea 100644
--- a/igor.py
+++ b/igor.py
@@ -305,16 +305,16 @@ def do_help():
print("%-20s%s" % (name[3:], value.__doc__))
-def analyze_args(callble):
- """What kind of args does `callble` expect?
+def analyze_args(function):
+ """What kind of args does `function` expect?
Returns:
star, num_pos:
- star(boolean): Does `callble` accept *args?
- num_args(int): How many positional arguments does `callble` have?
+ star(boolean): Does `function` accept *args?
+ num_args(int): How many positional arguments does `function` have?
"""
with ignore_warnings():
- argspec = inspect.getargspec(callble)
+ argspec = inspect.getargspec(function)
return bool(argspec[1]), len(argspec[0])