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/transformer.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/transformer.py')
-rw-r--r-- | giscanner/transformer.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/giscanner/transformer.py b/giscanner/transformer.py index 2d5c04d7..133edd4b 100644 --- a/giscanner/transformer.py +++ b/giscanner/transformer.py @@ -116,7 +116,7 @@ class Transformer(object): # Run through the tag namespace looking for structs that have not been # promoted into the main namespace. In this case we simply promote them # with their struct tag. - for tag_name, struct in self._tag_ns.iteritems(): + for tag_name, struct in self._tag_ns.items(): if not struct.name: try: name = self.strip_identifier(tag_name) @@ -235,7 +235,7 @@ None.""" """Return an iterator over all included namespaces; the currently-scanned namespace is first.""" yield self._namespace - for ns in self._parsed_includes.itervalues(): + for ns in self._parsed_includes.values(): yield ns def _sort_matches(self, x, y): @@ -906,7 +906,7 @@ Note that type resolution may not succeed.""" # which has nominal namespace of "Meta", but a few classes are # "Mutter". We don't export that data in introspection currently. # Basically the library should be fixed, but we'll hack around it here. - for namespace in self._parsed_includes.itervalues(): + for namespace in self._parsed_includes.values(): target = namespace.get_by_ctype(pointer_stripped) if target: typeval.target_giname = '%s.%s' % (namespace.name, target.name) |