summaryrefslogtreecommitdiff
path: root/numpy/compat/_inspect.py
diff options
context:
space:
mode:
authornjsmith <njs@pobox.com>2013-03-01 09:16:58 -0800
committernjsmith <njs@pobox.com>2013-03-01 09:16:58 -0800
commitd111fbdc1e7da219e4a30b8abd3f710b57116635 (patch)
tree3780cc9c487659538c51b7c8d8e091c52fd7047f /numpy/compat/_inspect.py
parent3c13c0a925276130d66be490eed4ae337712cce2 (diff)
parent0a5746d3c22cf296b995476bdc473a4423d7a84d (diff)
downloadnumpy-d111fbdc1e7da219e4a30b8abd3f710b57116635.tar.gz
Merge pull request #3099 from charris/2to3-methodattrs
2to3: Apply `methodattrs` fixes.
Diffstat (limited to 'numpy/compat/_inspect.py')
-rw-r--r--numpy/compat/_inspect.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/compat/_inspect.py b/numpy/compat/_inspect.py
index 4fee50814..89b30ef86 100644
--- a/numpy/compat/_inspect.py
+++ b/numpy/compat/_inspect.py
@@ -125,7 +125,7 @@ def getargspec(func):
"""
if ismethod(func):
- func = func.im_func
+ func = func.__func__
if not isfunction(func):
raise TypeError('arg is not a Python function')
args, varargs, varkw = getargs(func.__code__)