libstdc++: Fix std::error_code pretty printer for versioned namespace
authorJonathan Wakely <jwakely@redhat.com>
Wed, 5 Jan 2022 14:06:43 +0000 (14:06 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 5 Jan 2022 14:17:50 +0000 (14:17 +0000)
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

index 44f1148..b3f4956 100644 (file)
@@ -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']