[gobject-introspection] giscanner: use dict.values() in favor of dict.itervalues()



commit 93abf1c2f65a2378971a056d6f5e7df68e9e72c4
Author: Dieter Verfaillie <dieterv optionexplicit be>
Date:   Wed Nov 28 19:05:58 2012 +0100

    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 files 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.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]