diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2013-02-28 11:32:12 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2013-02-28 11:32:12 -0700 |
commit | 80af580d76cbd18a5c91851d8b404636d8acd2a9 (patch) | |
tree | b3ef41697787a2266c745995a59485b8762fbd6c /numpy/distutils/command/build_src.py | |
parent | 0934653e151969f6912c911b5113306bd5f450f1 (diff) | |
download | numpy-80af580d76cbd18a5c91851d8b404636d8acd2a9.tar.gz |
2to3: Apply `funcattrs` fixer. Closes #3058.
This replaces the `b.func_xxxx` with newer `__xxxx__` attribute names
For example, `f.__name__` replaces `f.func_name`
Diffstat (limited to 'numpy/distutils/command/build_src.py')
-rw-r--r-- | numpy/distutils/command/build_src.py | 2 |
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() |