diff mbox series

[committed] libstdc++: Fix std::error_code pretty printer for versioned namespace

Message ID 20220105153034.1775801-1-jwakely@redhat.com
State New
Headers show
Series [committed] libstdc++: Fix std::error_code pretty printer for versioned namespace | expand

Commit Message

Jonathan Wakely Jan. 5, 2022, 3:30 p.m. UTC
Tested powerpc64le-linux, pushed to trunk.


libstdc++-v3/ChangeLog:

	* python/libstdcxx/v6/printers.py (StdErrorCodePrinter): Strip
	versioned namespace from the type name that is printed.
---
 libstdc++-v3/python/libstdcxx/v6/printers.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libstdc++-v3/python/libstdcxx/v6/printers.py b/libstdc++-v3/python/libstdcxx/v6/printers.py
index 44f1148d5ab..b3f4956381b 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']