projects
/
platform
/
upstream
/
gobject-introspection.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45fd6f6
)
treat constructors like methods when generating the label
author
John (J5) Palmieri
<johnp@redhat.com>
Mon, 15 Aug 2011 14:33:06 +0000
(10:33 -0400)
committer
John (J5) Palmieri
<johnp@redhat.com>
Mon, 15 Aug 2011 14:33:06 +0000
(10:33 -0400)
giscanner/mallardwriter.py
patch
|
blob
|
history
diff --git
a/giscanner/mallardwriter.py
b/giscanner/mallardwriter.py
index
3c4d6c9
..
3c0f2fd
100644
(file)
--- a/
giscanner/mallardwriter.py
+++ b/
giscanner/mallardwriter.py
@@
-265,7
+265,7
@@
class MallardFormatterPython(MallardFormatter):
if isinstance(node, ast.Namespace):
return "%s Documentation" % node.name
elif isinstance(node, ast.Function):
- if node.is_method:
+ if node.is_method
and node.is_constructor
:
return "%s.%s.%s" % (node.namespace.name, parent.name, node.name)
else:
return "%s.%s" % (node.namespace.name, node.name)