giscanner: use dict.values() in favor of dict.itervalues()
authorDieter Verfaillie <dieterv@optionexplicit.be>
Wed, 28 Nov 2012 18:05:58 +0000 (19:05 +0100)
committerDieter Verfaillie <dieterv@optionexplicit.be>
Wed, 28 Nov 2012 20:31:22 +0000 (21:31 +0100)
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

index 9770480..89c4413 100644 (file)
@@ -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.