summaryrefslogtreecommitdiff
path: root/doc/sphinxext/phantom_import.py
diff options
context:
space:
mode:
Diffstat (limited to 'doc/sphinxext/phantom_import.py')
-rw-r--r--doc/sphinxext/phantom_import.py2
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]):