summaryrefslogtreecommitdiff
path: root/giscanner
diff options
context:
space:
mode:
authorJohn (J5) Palmieri <johnp@redhat.com>2011-08-15 10:41:50 -0400
committerJohn (J5) Palmieri <johnp@redhat.com>2011-08-15 10:41:50 -0400
commit491e7de8a0d27a6d17204ad6d6145cb4e740c38b (patch)
tree9909a5407285854cb32b3b80434b28d703faa790 /giscanner
parent1751c105dc22048ce8dcc7ae67f7fca7a0f2af0c (diff)
downloadgobject-introspection-491e7de8a0d27a6d17204ad6d6145cb4e740c38b.tar.gz
[doctools] use 'or' instead of 'and' when checking for func or constructor
Diffstat (limited to 'giscanner')
-rw-r--r--giscanner/mallardwriter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/mallardwriter.py b/giscanner/mallardwriter.py
index 3c0f2fd3..a71528e9 100644
--- 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 and node.is_constructor:
+ if node.is_method or node.is_constructor:
return "%s.%s.%s" % (node.namespace.name, parent.name, node.name)
else:
return "%s.%s" % (node.namespace.name, node.name)