[gobject-introspection] [maintransformer] Use constants
- From: Johan Dahlin <johan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] [maintransformer] Use constants
- Date: Fri, 24 Sep 2010 14:16:43 +0000 (UTC)
commit b04e0df15a67b1159752615941527023bd781a39
Author: Johan Dahlin <johan gnome org>
Date: Fri Sep 24 09:58:45 2010 -0300
[maintransformer] Use constants
giscanner/maintransformer.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/giscanner/maintransformer.py b/giscanner/maintransformer.py
index 3403033..fcbf109 100644
--- a/giscanner/maintransformer.py
+++ b/giscanner/maintransformer.py
@@ -303,7 +303,7 @@ usage is void (*_gtk_reserved1)(void);"""
if isinstance(param, ast.Parameter):
tag = block.tags.get(param.argname)
elif isinstance(param, ast.Return):
- tag = block.tags.get('returns')
+ tag = block.tags.get(TAG_RETURNS)
else:
tag = None
@@ -613,7 +613,7 @@ usage is void (*_gtk_reserved1)(void);"""
if doc_name in allparams:
continue
# Skip varargs, see #629759
- if doc_name.lower() in ['...', 'varargs', 'returns']:
+ if doc_name.lower() in ['...', 'varargs', TAG_RETURNS]:
continue
if len(allparams) == 0:
text = ''
@@ -654,7 +654,7 @@ usage is void (*_gtk_reserved1)(void);"""
tag = block.get(field.name)
if not tag:
return
- t = tag.options.get('type')
+ t = tag.options.get(OPT_TYPE)
if not t:
return
field.type = self._transformer.create_type_from_user_string(t.one())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]