* python/libstdcxx/v6/printers.py

(SingleObjContainerPrinter._contained): Use compatibility mixin.

From-SVN: r213227
This commit is contained in:
Jonathan Wakely 2014-07-29 22:35:57 +01:00 committed by Jonathan Wakely
parent 5c7c5f9a88
commit 3e5eda5b4d
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2014-07-29 Jonathan Wakely <jwakely@redhat.com>
* python/libstdcxx/v6/printers.py
(SingleObjContainerPrinter._contained): Use compatibility mixin.
2014-07-29 François Dumont <fdumont@gcc.gnu.org>
* testsuite/util/testsuite_allocator.h

View File

@ -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