[glib] glib.py: Fix Python 3 TypeError in gdb pretty-printers
- From: Olivier Crête <tester src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] glib.py: Fix Python 3 TypeError in gdb pretty-printers
- Date: Wed, 16 Dec 2015 00:44:44 +0000 (UTC)
commit c935237e75c4ed770d9efc9e8bd3be109889d994
Author: Marius Gedminas <marius gedmin as>
Date: Fri May 8 02:54:00 2015 -0400
glib.py: Fix Python 3 TypeError in gdb pretty-printers
https://bugzilla.gnome.org/show_bug.cgi?id=749092
glib/glib.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/glib/glib.py b/glib/glib.py
index f7fe22b..38f101a 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]