summaryrefslogtreecommitdiff
path: root/giscanner/ast.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/ast.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/ast.py')
-rw-r--r--giscanner/ast.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/giscanner/ast.py b/giscanner/ast.py
index 405a71fd..9f1e4cc0 100644
--- a/giscanner/ast.py
+++ b/giscanner/ast.py
@@ -463,11 +463,11 @@ functions via get_by_symbol()."""
def __iter__(self):
return iter(self.names)
- def iteritems(self):
- return self.names.iteritems()
+ def items(self):
+ return self.names.items()
- def itervalues(self):
- return self.names.itervalues()
+ def values(self):
+ return self.names.values()
def get(self, name):
return self.names.get(name)
@@ -479,7 +479,7 @@ functions via get_by_symbol()."""
return self.symbols.get(symbol)
def walk(self, callback):
- for node in self.itervalues():
+ for node in self.values():
node.walk(callback, [])