From: Dieter Verfaillie Date: Wed, 28 Nov 2012 18:05:58 +0000 (+0100) Subject: giscanner: use dict.values() in favor of dict.itervalues() X-Git-Tag: GOBJECT_INTROSPECTION_1_35_3~32 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=93abf1c2f65a2378971a056d6f5e7df68e9e72c4;p=platform%2Fupstream%2Fgobject-introspection.git 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 --- 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.