summaryrefslogtreecommitdiff
path: root/giscanner/gdumpparser.py
diff options
context:
space:
mode:
authorSimon Feltman <sfeltman@src.gnome.org>2014-04-28 22:57:00 -0700
committerThomas A Caswell <tcaswell@gmail.com>2015-09-29 14:44:50 -0400
commite09c0a2bca45016daee064669ef5b1c9a748a566 (patch)
tree567ce836ed738a0a8161c11602cb135c2a77375e /giscanner/gdumpparser.py
parentd9a9f70ef6e3b1ef0f4baccf94780d286e51bbb0 (diff)
downloadgobject-introspection-e09c0a2bca45016daee064669ef5b1c9a748a566.tar.gz
giscanner: Use items() instead of iteritems()
Replace usage of iteritems() and itervalues() with items() and values() respectively. https://bugzilla.gnome.org/show_bug.cgi?id=679438
Diffstat (limited to 'giscanner/gdumpparser.py')
-rw-r--r--giscanner/gdumpparser.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/giscanner/gdumpparser.py b/giscanner/gdumpparser.py
index ebd33f98..405ce28c 100644
--- a/giscanner/gdumpparser.py
+++ b/giscanner/gdumpparser.py
@@ -84,12 +84,12 @@ class GDumpParser(object):
"""
# First pass: parsing
- for node in self._namespace.itervalues():
+ for node in self._namespace.values():
if isinstance(node, ast.Function):
self._initparse_function(node)
if self._namespace.name == 'GObject' or self._namespace.name == 'GLib':
- for node in self._namespace.itervalues():
+ for node in self._namespace.values():
if isinstance(node, ast.Record):
self._initparse_gobject_record(node)
@@ -116,16 +116,16 @@ class GDumpParser(object):
self._introspect_type(child)
# Pair up boxed types and class records
- for name, boxed in self._boxed_types.iteritems():
+ for name, boxed in self._boxed_types.items():
self._pair_boxed_type(boxed)
- for node in self._namespace.itervalues():
+ for node in self._namespace.values():
if isinstance(node, (ast.Class, ast.Interface)):
self._find_class_record(node)
# Clear the _get_type functions out of the namespace;
# Anyone who wants them can get them from the ast.Class/Interface/Boxed
to_remove = []
- for name, node in self._namespace.iteritems():
+ for name, node in self._namespace.items():
if isinstance(node, ast.Registered) and node.get_type is not None:
get_type_name = node.get_type
if get_type_name == 'intern':