diff options
Diffstat (limited to 'numpy/lib/inspect.py')
-rw-r--r-- | numpy/lib/inspect.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/inspect.py b/numpy/lib/inspect.py index 7ce903ad4..8ba30ab6a 100644 --- a/numpy/lib/inspect.py +++ b/numpy/lib/inspect.py @@ -136,7 +136,7 @@ def joinseq(seq): if len(seq) == 1: return '(' + seq[0] + ',)' else: - return '(' + string.join(seq, ', ') + ')' + return '(' + ', '.join(seq) + ')' def strseq(object, convert, join=joinseq): """Recursively walk a sequence, stringifying each element.""" @@ -169,7 +169,7 @@ def formatargspec(args, varargs=None, varkw=None, defaults=None, specs.append(formatvarargs(varargs)) if varkw is not None: specs.append(formatvarkw(varkw)) - return '(' + string.join(specs, ', ') + ')' + return '(' + ', '.join(specs) + ')' def formatargvalues(args, varargs, varkw, locals, formatarg=str, |