diff options
author | Tomeu Vizoso <tomeu.vizoso@collabora.com> | 2012-02-21 16:52:04 +0100 |
---|---|---|
committer | Tomeu Vizoso <tomeu.vizoso@collabora.com> | 2012-02-21 17:09:29 +0100 |
commit | c5e08fdb776e704b1f6a49e0f62fa08d2a0905a1 (patch) | |
tree | 3d13d5cecb65ef2d9d4ffa8b4e610dab3b3c18a4 /giscanner | |
parent | b0a7d14a253be4a6c93eb9211a3c25469fa2211e (diff) | |
download | gobject-introspection-c5e08fdb776e704b1f6a49e0f62fa08d2a0905a1.tar.gz |
g-ir-doc-tool: Remove constructors from python docs
Diffstat (limited to 'giscanner')
-rw-r--r-- | giscanner/mallardwriter.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/giscanner/mallardwriter.py b/giscanner/mallardwriter.py index a7154b59..9f11c60b 100644 --- a/giscanner/mallardwriter.py +++ b/giscanner/mallardwriter.py @@ -185,11 +185,12 @@ class MallardWriter(object): nodes.append(node) if isinstance(node, (ast.Class, ast.Interface, ast.Record)): nodes += getattr(node, 'methods', []) - nodes += getattr(node, 'constructors', []) nodes += getattr(node, 'static_methods', []) nodes += getattr(node, 'virtual_methods', []) nodes += getattr(node, 'properties', []) nodes += getattr(node, 'signals', []) + if self._language == 'C': + nodes += getattr(node, 'constructors', []) for node in nodes: self._render_node(node, output) |