From 80af580d76cbd18a5c91851d8b404636d8acd2a9 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Thu, 28 Feb 2013 11:32:12 -0700 Subject: 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` --- doc/sphinxext/phantom_import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/sphinxext') 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]): -- cgit v1.2.1