commit 7de83299c42041611360a1426f5164270ac6c6b6
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Tue Jul 29 20:08:31 2014 +0100
* python/libstdcxx/v6/printers.py
(SingleObjContainerPrinter._contained): Use compatibility mixin.
@@ -851,14 +851,14 @@ class SingleObjContainerPrinter(object):
return gdb.types.apply_type_recognizers(gdb.types.get_type_recognizers(),
type) or str(type)
- class _contained:
+ class _contained(Iterator):
def __init__ (self, val):
self.val = val
def __iter__ (self):
return self
- def next (self):
+ def __next__(self):
if self.val is None:
raise StopIteration
retval = self.val