]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* python/libstdcxx/v6/printers.py
authorJonathan Wakely <jwakely@redhat.com>
Tue, 29 Jul 2014 21:35:57 +0000 (22:35 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 29 Jul 2014 21:35:57 +0000 (22:35 +0100)
(SingleObjContainerPrinter._contained): Use compatibility mixin.

From-SVN: r213227

libstdc++-v3/ChangeLog
libstdc++-v3/python/libstdcxx/v6/printers.py

index c818e63756df71456e78222124cef0217fa86442..1ccb463427438476617d7fa3adb8a07db29a17e3 100644 (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
index 15d7a88dbf81b360ef104acddcfaa55088caa540..2e5cd6ca0a8658700ea718e7f50de3ec9537d3c9 100644 (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