summaryrefslogtreecommitdiff
path: root/giscanner
diff options
context:
space:
mode:
authorDieter Verfaillie <dieterv@optionexplicit.be>2013-09-07 00:14:24 +0200
committerRyan Lortie <desrt@desrt.ca>2014-05-06 08:15:23 -0400
commit0839e696e9fbc1942ac5c61054de3b47e9578152 (patch)
treee2c03d3bd680b1a6a7e4f621cb20148256defe84 /giscanner
parent1c1039b8be50a4390cedfc7cd3db923a342201db (diff)
downloadgobject-introspection-0839e696e9fbc1942ac5c61054de3b47e9578152.tar.gz
giscanner: don't accept (allow-none) on Returns:
The old annotationparser.py happily parsed this, but giscanner/girwriter.py never serialized an allow-none attribute to the .gir file and girepository/girparser.c never looked for an allow-none attribute either. https://bugzilla.gnome.org/show_bug.cgi?id=660879
Diffstat (limited to 'giscanner')
-rw-r--r--giscanner/annotationparser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/annotationparser.py b/giscanner/annotationparser.py
index a00bac1d..5ded4193 100644
--- a/giscanner/annotationparser.py
+++ b/giscanner/annotationparser.py
@@ -955,7 +955,7 @@ class GtkDocTag(GtkDocAnnotatable):
__slots__ = ('name', 'value', 'description')
- valid_annotations = (ANN_ALLOW_NONE, ANN_ARRAY, ANN_ATTRIBUTES, ANN_ELEMENT_TYPE, ANN_SKIP,
+ valid_annotations = (ANN_ARRAY, ANN_ATTRIBUTES, ANN_ELEMENT_TYPE, ANN_SKIP,
ANN_TRANSFER, ANN_TYPE)
def __init__(self, name, position=None):