diff options
author | njsmith <njs@pobox.com> | 2013-03-01 09:16:58 -0800 |
---|---|---|
committer | njsmith <njs@pobox.com> | 2013-03-01 09:16:58 -0800 |
commit | d111fbdc1e7da219e4a30b8abd3f710b57116635 (patch) | |
tree | 3780cc9c487659538c51b7c8d8e091c52fd7047f /numpy/lib/utils.py | |
parent | 3c13c0a925276130d66be490eed4ae337712cce2 (diff) | |
parent | 0a5746d3c22cf296b995476bdc473a4423d7a84d (diff) | |
download | numpy-d111fbdc1e7da219e4a30b8abd3f710b57116635.tar.gz |
Merge pull request #3099 from charris/2to3-methodattrs
2to3: Apply `methodattrs` fixes.
Diffstat (limited to 'numpy/lib/utils.py')
-rw-r--r-- | numpy/lib/utils.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/lib/utils.py b/numpy/lib/utils.py index 97f8358aa..fbb295ed2 100644 --- a/numpy/lib/utils.py +++ b/numpy/lib/utils.py @@ -557,7 +557,7 @@ def info(object=None,maxwidth=76,output=sys.stdout,toplevel='numpy'): arguments = "()" try: if hasattr(object, '__init__'): - arguments = inspect.formatargspec(*inspect.getargspec(object.__init__.im_func)) + arguments = inspect.formatargspec(*inspect.getargspec(object.__init__.__func__)) arglist = arguments.split(', ') if len(arglist) > 1: arglist[1] = "("+arglist[1] @@ -593,7 +593,7 @@ def info(object=None,maxwidth=76,output=sys.stdout,toplevel='numpy'): print >> output, "Instance of class: ", object.__class__.__name__ print >> output if hasattr(object, '__call__'): - arguments = inspect.formatargspec(*inspect.getargspec(object.__call__.im_func)) + arguments = inspect.formatargspec(*inspect.getargspec(object.__call__.__func__)) arglist = arguments.split(', ') if len(arglist) > 1: arglist[1] = "("+arglist[1] @@ -621,7 +621,7 @@ def info(object=None,maxwidth=76,output=sys.stdout,toplevel='numpy'): elif inspect.ismethod(object): name = object.__name__ - arguments = inspect.formatargspec(*inspect.getargspec(object.im_func)) + arguments = inspect.formatargspec(*inspect.getargspec(object.__func__)) arglist = arguments.split(', ') if len(arglist) > 1: arglist[1] = "("+arglist[1] |