summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDieter Verfaillie <dieterv@optionexplicit.be>2012-11-28 19:05:58 +0100
committerDieter Verfaillie <dieterv@optionexplicit.be>2012-11-28 21:31:22 +0100
commit93abf1c2f65a2378971a056d6f5e7df68e9e72c4 (patch)
tree7526dae246e2b4fa430b1b6148a02ca516cd0460
parenta867ab49295f5f6f1f72042c237625905e43953f (diff)
downloadgobject-introspection-93abf1c2f65a2378971a056d6f5e7df68e9e72c4.tar.gz
giscanner: use dict.values() in favor of dict.itervalues()
This makes it possible to run the upcoming annotationparser.py tests with both Python 2 and Python 3. https://bugzilla.gnome.org/show_bug.cgi?id=688897
-rw-r--r--giscanner/annotationparser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/giscanner/annotationparser.py b/giscanner/annotationparser.py
index 97704801..89c44136 100644
--- a/giscanner/annotationparser.py
+++ b/giscanner/annotationparser.py
@@ -879,10 +879,10 @@ class AnnotationParser(object):
else:
comment_block.comment = ''
- for tag in comment_block.tags.itervalues():
+ for tag in comment_block.tags.values():
self._clean_comment_block_part(tag)
- for param in comment_block.params.itervalues():
+ for param in comment_block.params.values():
self._clean_comment_block_part(param)
# Validate and store block.