From 93abf1c2f65a2378971a056d6f5e7df68e9e72c4 Mon Sep 17 00:00:00 2001 From: Dieter Verfaillie Date: Wed, 28 Nov 2012 19:05:58 +0100 Subject: [PATCH] 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 --- giscanner/annotationparser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/giscanner/annotationparser.py b/giscanner/annotationparser.py index 9770480..89c4413 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. -- 2.7.4