public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-9434] libstdc++: Fix std::error_code pretty printer for versioned namespace
@ 2022-01-05 15:34 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2022-01-05 15:34 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:a03aae8d9f5dbfe3ca3dbfe7eadc6bbe6fbbe1bc

commit r11-9434-ga03aae8d9f5dbfe3ca3dbfe7eadc6bbe6fbbe1bc
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Wed Jan 5 14:06:43 2022 +0000

    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.
    
    (cherry picked from commit 1918067e2d0d79ccaf1e4ed98096060fc235e772)

Diff:
---
 libstdc++-v3/python/libstdcxx/v6/printers.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-05 15:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-05 15:34 [gcc r11-9434] libstdc++: Fix std::error_code pretty printer for versioned namespace Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).