summaryrefslogtreecommitdiff
path: root/giscanner/annotationparser.py
diff options
context:
space:
mode:
authorDieter Verfaillie <dieterv@optionexplicit.be>2012-11-20 07:54:43 +0100
committerDieter Verfaillie <dieterv@optionexplicit.be>2012-11-28 21:31:22 +0100
commitd6c2ad348892c32a42d112d94168ac071a14c0a2 (patch)
tree0f30e1b239c625e1aab56e7a0eefa3e0f6390dd5 /giscanner/annotationparser.py
parent4959599c423af9648d8d4e3f02b4117d11ab9a0b (diff)
downloadgobject-introspection-d6c2ad348892c32a42d112d94168ac071a14c0a2.tar.gz
giscanner: use "if in [a, b]" instead of "if == a or if == b"
It simply looks better... https://bugzilla.gnome.org/show_bug.cgi?id=688897
Diffstat (limited to 'giscanner/annotationparser.py')
-rw-r--r--giscanner/annotationparser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/giscanner/annotationparser.py b/giscanner/annotationparser.py
index 764d594c..d4989135 100644
--- a/giscanner/annotationparser.py
+++ b/giscanner/annotationparser.py
@@ -779,7 +779,7 @@ class AnnotationParser(object):
# line, we must be parsing the comment block description.
####################################################################
if (EMPTY_LINE_RE.search(line)
- and (in_part == PART_IDENTIFIER or in_part == PART_PARAMETERS)):
+ and in_part in [PART_IDENTIFIER, PART_PARAMETERS]):
in_part = PART_DESCRIPTION
continue
@@ -844,7 +844,7 @@ class AnnotationParser(object):
# If we get here, we must be in the middle of a multiline
# comment block, parameter or tag description.
####################################################################
- if in_part == PART_DESCRIPTION or in_part == PART_IDENTIFIER:
+ if in_part in [PART_IDENTIFIER, PART_DESCRIPTION]:
if not comment_block.comment:
# Backwards compatibility with old style GTK-Doc
# comment blocks where Description used to be a comment