summaryrefslogtreecommitdiff
path: root/numpy/distutils/command/build_src.py
diff options
context:
space:
mode:
authornjsmith <njs@pobox.com>2013-02-28 11:15:09 -0800
committernjsmith <njs@pobox.com>2013-02-28 11:15:09 -0800
commite1c7c4df0c7afb0baff683c7e3a1f4b205d6e572 (patch)
treee191df1d34650c96ab87e128020224c123374878 /numpy/distutils/command/build_src.py
parent2cb5021f2110f7e24a6a30a3a0af8336f46fb621 (diff)
parent80af580d76cbd18a5c91851d8b404636d8acd2a9 (diff)
downloadnumpy-e1c7c4df0c7afb0baff683c7e3a1f4b205d6e572.tar.gz
Merge pull request #3059 from charris/2to3-funcattrs
2to3: Apply `funcattrs` fixer. Closes #3058.
Diffstat (limited to 'numpy/distutils/command/build_src.py')
-rw-r--r--numpy/distutils/command/build_src.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/distutils/command/build_src.py b/numpy/distutils/command/build_src.py
index 7bf3b43ce..332c31f15 100644
--- a/numpy/distutils/command/build_src.py
+++ b/numpy/distutils/command/build_src.py
@@ -189,7 +189,7 @@ class build_src(build_ext.build_ext):
funcs = filter(lambda f:hasattr(f, '__call__'), files)
files = filter(lambda f:not hasattr(f, '__call__'), files)
for f in funcs:
- if f.func_code.co_argcount==1:
+ if f.__code__.co_argcount==1:
s = f(build_dir)
else:
s = f()