summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Gedminas <marius@gedmin.as>2015-05-08 02:54:00 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2015-12-15 19:40:43 -0500
commitc935237e75c4ed770d9efc9e8bd3be109889d994 (patch)
tree31be0933f8b519da9ffcfee497998b5da1d0ec27
parentc97729532f54043edb959a2bd2ca6c5df5135658 (diff)
downloadglib-c935237e75c4ed770d9efc9e8bd3be109889d994.tar.gz
glib.py: Fix Python 3 TypeError in gdb pretty-printers
https://bugzilla.gnome.org/show_bug.cgi?id=749092
-rw-r--r--glib/glib.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/glib/glib.py b/glib/glib.py
index f7fe22be8..38f101ad5 100644
--- a/glib/glib.py
+++ b/glib/glib.py
@@ -67,6 +67,8 @@ class GListPrinter:
self.count = self.count + 1
return ('[%d]' % count, data)
+ __next__ = next
+
def __init__ (self, val, listtype):
self.val = val
self.listtype = listtype
@@ -121,6 +123,8 @@ class GHashPrinter:
return ('[%dk]'% (self.pos), key)
raise StopIteration
+ __next__ = next
+
def __init__ (self, val):
self.val = val
self.keys_are_strings = False