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 /doc/sphinxext | |
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 'doc/sphinxext')
-rw-r--r-- | doc/sphinxext/phantom_import.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/sphinxext/phantom_import.py b/doc/sphinxext/phantom_import.py index c77eeb544..b6cd3af87 100644 --- a/doc/sphinxext/phantom_import.py +++ b/doc/sphinxext/phantom_import.py @@ -129,7 +129,7 @@ def import_phantom_module(xml_file): doc = "%s%s\n\n%s" % (funcname, argspec, doc) obj = lambda: 0 obj.__argspec_is_invalid_ = True - obj.func_name = funcname + obj.__name__ = funcname obj.__name__ = name obj.__doc__ = doc if inspect.isclass(object_cache[parent]): |