aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2022-01-05 14:06:43 +0000
committerJonathan Wakely <jwakely@redhat.com>2022-01-05 14:17:50 +0000
commit1918067e2d0d79ccaf1e4ed98096060fc235e772 (patch)
tree7ce0f28026c6c8c3302283410753ad4903017d9e
parent7a2f2d91aa6d18b0ab4194f9eb94262016a09803 (diff)
downloadgcc-1918067e2d0d79ccaf1e4ed98096060fc235e772.zip
gcc-1918067e2d0d79ccaf1e4ed98096060fc235e772.tar.gz
gcc-1918067e2d0d79ccaf1e4ed98096060fc235e772.tar.bz2
libstdc++: Fix std::error_code pretty printer for versioned namespace
libstdc++-v3/ChangeLog: * python/libstdcxx/v6/printers.py (StdErrorCodePrinter): Strip versioned namespace from the type name that is printed.
-rw-r--r--libstdc++-v3/python/libstdcxx/v6/printers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/python/libstdcxx/v6/printers.py b/libstdc++-v3/python/libstdcxx/v6/printers.py
index 44f1148..b3f4956 100644
--- a/libstdc++-v3/python/libstdcxx/v6/printers.py
+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
@@ -1522,7 +1522,7 @@ class StdErrorCodePrinter:
def __init__ (self, typename, val):
self.val = val
- self.typename = typename
+ self.typename = strip_versioned_namespace(typename)
# Do this only once ...
if StdErrorCodePrinter._errno_categories is None:
StdErrorCodePrinter._errno_categories = ['generic']