summaryrefslogtreecommitdiff
path: root/numpy/compat
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2013-02-28 17:57:32 -0700
committerCharles Harris <charlesr.harris@gmail.com>2013-03-01 09:14:19 -0700
commit0a5746d3c22cf296b995476bdc473a4423d7a84d (patch)
tree6848c8631390284f5e5df1e9cf38fe8205314996 /numpy/compat
parent02cfcb99bc976a0bfc39529999e2a0200fb9cc2a (diff)
downloadnumpy-0a5746d3c22cf296b995476bdc473a4423d7a84d.tar.gz
2to3: Apply `methodattrs` fixes.
Replaces old style `f.im_func` and `f.im_class` method attributes with `f.__func__` and `f.__class__`. Closes #3070.
Diffstat (limited to 'numpy/compat')
-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__)