diff options
author | Simon Feltman <sfeltman@src.gnome.org> | 2014-04-28 22:57:00 -0700 |
---|---|---|
committer | Thomas A Caswell <tcaswell@gmail.com> | 2015-09-29 14:44:50 -0400 |
commit | e09c0a2bca45016daee064669ef5b1c9a748a566 (patch) | |
tree | 567ce836ed738a0a8161c11602cb135c2a77375e /giscanner/gdumpparser.py | |
parent | d9a9f70ef6e3b1ef0f4baccf94780d286e51bbb0 (diff) | |
download | gobject-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.py | 10 |
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': |