From 4a75911d4251128de1d2beff53c5a6a0b90d03d7 Mon Sep 17 00:00:00 2001 From: Johan Bilien Date: Sun, 12 Oct 2008 21:11:18 +0000 Subject: [PATCH] prefix for constants have an underscore, so remove them as if they were 2008-10-12 Johan Bilien * giscanner/transformer.py: prefix for constants have an underscore, so remove them as if they were functions, not objects. svn path=/trunk/; revision=694 --- ChangeLog | 5 +++++ giscanner/transformer.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 329078b8..ac946ba7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-10-12 Johan Bilien + + * giscanner/transformer.py: prefix for constants have an underscore, + so remove them as if they were functions, not objects. + 2008-10-12 Johan Bilien * tests/scanner/foo-1.0-expected.gir: add constants to expected gir diff --git a/giscanner/transformer.py b/giscanner/transformer.py index ea89b332..987221b5 100644 --- a/giscanner/transformer.py +++ b/giscanner/transformer.py @@ -460,7 +460,7 @@ class Transformer(object): def _create_const(self, symbol): name = self._remove_prefix(symbol.ident) - name = self.strip_namespace_object(name) + name = self._strip_namespace_func(name) if symbol.const_string is None: type_name = 'int' value = symbol.const_int -- 2.34.1