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/testing/noseclasses.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/testing/noseclasses.py')
| -rw-r--r-- | numpy/testing/noseclasses.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/testing/noseclasses.py b/numpy/testing/noseclasses.py index 5152bdd60..77634deea 100644 --- a/numpy/testing/noseclasses.py +++ b/numpy/testing/noseclasses.py @@ -35,7 +35,7 @@ class NumpyDocTestFinder(doctest.DocTestFinder): return True elif inspect.isfunction(object): #print '_fm C2' # dbg - return module.__dict__ is object.func_globals + return module.__dict__ is object.__globals__ elif inspect.isbuiltin(object): #print '_fm C2-1' # dbg return module.__name__ == object.__module__ |
