From: Jonathan Wakely Date: Wed, 5 Jan 2022 14:06:43 +0000 (+0000) Subject: libstdc++: Fix std::error_code pretty printer for versioned namespace X-Git-Tag: basepoints/gcc-13~2049 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1918067e2d0d79ccaf1e4ed98096060fc235e772;p=thirdparty%2Fgcc.git 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. --- diff --git a/libstdc++-v3/python/libstdcxx/v6/printers.py b/libstdc++-v3/python/libstdcxx/v6/printers.py index 44f1148d5abe..b3f4956381bc 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']