diff options
author | Laszlo Pandy <lpandy@src.gnome.org> | 2011-08-11 10:57:14 +0200 |
---|---|---|
committer | Laszlo Pandy <lpandy@src.gnome.org> | 2011-08-11 12:40:24 +0200 |
commit | 28bc1cbdfc5b213d7c926e05f35709c55f5908b1 (patch) | |
tree | c195a64731f638438b887466fbf481f4b4cf1a81 /giscanner/docmain.py | |
parent | 93b27c02c1ee9ddea871c36dd1bf6e9ef443cebd (diff) | |
download | gobject-introspection-28bc1cbdfc5b213d7c926e05f35709c55f5908b1.tar.gz |
[docbook] Make DocBookWriter use Transformer
Diffstat (limited to 'giscanner/docmain.py')
-rw-r--r-- | giscanner/docmain.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/giscanner/docmain.py b/giscanner/docmain.py index 7684944b..29b5ddfb 100644 --- a/giscanner/docmain.py +++ b/giscanner/docmain.py @@ -21,17 +21,15 @@ import optparse from .docbookwriter import DocBookWriter -from .girparser import GIRParser +from .transformer import Transformer class GIDocGenerator(object): def parse(self, filename): - self.parser = GIRParser() - self.parser.parse(filename) + self.transformer = Transformer.parse_from_gir(filename) def generate(self, writer, output): - ns = self.parser.get_namespace() - writer.add_namespace(ns) + writer.add_transformer(self.transformer) writer.write(output) def doc_main(args): |