Loosely based on Matthias Klose's earlier patch
.
This time with his name spelled correctly; sorry about that!
Tested with:
$ make check-target-libstdc++-v3 RUNTESTFLAGS='--directory libstdc++-prettyprinters'
libstdc++-v3/
PR libstdc++/58962
* python/libstdcxx/v6/printers.py: Port to Python 2+3
(imap): New compat function.
(izip): Likewise.
(Iterator): New mixin to allow writing iterators in Python 3 style
regardless of which version we're running on.
[Python3] (long) New compat alias for "int".
* testsuite/lib/gdb-test.exp: Port to Python 2+3 (print syntax)
Signed-off-by: Matthias Klose
Signed-off-by: Samuel Bronson
---
libstdc++-v3/python/libstdcxx/v6/printers.py | 110 +++++++++++++++++++--------
libstdc++-v3/testsuite/lib/gdb-test.exp | 4 +-
2 files changed, 79 insertions(+), 35 deletions(-)