diff options
author | Jasper St. Pierre <jstpierre@mecheye.net> | 2013-02-15 05:45:27 -0500 |
---|---|---|
committer | Jasper St. Pierre <jstpierre@mecheye.net> | 2013-02-15 05:55:53 -0500 |
commit | c53e5f29befc6b9e8d71746caf79e53821a4db4f (patch) | |
tree | 90a1bd87afeada6fe660bdca9de4256c82c31439 /giscanner/docwriter.py | |
parent | eab4582f2e3a90840d102f32e46d1d9b0645316a (diff) | |
download | gobject-introspection-c53e5f29befc6b9e8d71746caf79e53821a4db4f.tar.gz |
docwriter: Don't render constants for now
Clutter has thousands of keysym constants, and until we get them
all on one page, this is just tons of tiny files that are just
noise.
Diffstat (limited to 'giscanner/docwriter.py')
-rw-r--r-- | giscanner/docwriter.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/giscanner/docwriter.py b/giscanner/docwriter.py index bf0ca20d..85f3b16d 100644 --- a/giscanner/docwriter.py +++ b/giscanner/docwriter.py @@ -170,6 +170,9 @@ class DocFormatter(object): return saxutils.escape(text) def should_render_node(self, node): + if isinstance(node, ast.Constant): + return False + return True def format(self, node, doc): @@ -394,7 +397,7 @@ class DocFormatterIntrospectableBase(DocFormatter): if not getattr(node, "introspectable", True): return False - return True + return super(DocFormatterIntrospectableBase, self).should_render_node(node) class DocFormatterPython(DocFormatterIntrospectableBase): language = "Python" |