From b274afe8d031ab928727607231ace3f1564c4772 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Tue, 21 Feb 2012 18:16:00 +0100 Subject: g-ir-doc-tool: Remove class structs from Python docs --- giscanner/mallardwriter.py | 4 ++++ .../DocExamples.ObjClass.page | 12 ------------ 2 files changed, 4 insertions(+), 12 deletions(-) delete mode 100644 tests/doctool/DocExamples-1.0-Python-expected/DocExamples.ObjClass.page diff --git a/giscanner/mallardwriter.py b/giscanner/mallardwriter.py index bb268be7..e596eca8 100644 --- a/giscanner/mallardwriter.py +++ b/giscanner/mallardwriter.py @@ -182,6 +182,10 @@ class MallardWriter(object): continue if getattr(node, 'disguised', False): continue + if isinstance(node, ast.Record) and \ + self._language == 'Python' and \ + node.is_gtype_struct_for is not None: + continue nodes.append(node) if isinstance(node, (ast.Class, ast.Interface, ast.Record)): nodes += getattr(node, 'methods', []) diff --git a/tests/doctool/DocExamples-1.0-Python-expected/DocExamples.ObjClass.page b/tests/doctool/DocExamples-1.0-Python-expected/DocExamples.ObjClass.page deleted file mode 100644 index 32b131c5..00000000 --- a/tests/doctool/DocExamples-1.0-Python-expected/DocExamples.ObjClass.page +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - DocExamplesObjClass -

None

-
-- cgit v1.2.1