From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id AF29F3858430; Wed, 5 Jan 2022 15:34:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AF29F3858430 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jonathan Wakely To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r11-9434] libstdc++: Fix std::error_code pretty printer for versioned namespace X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/releases/gcc-11 X-Git-Oldrev: e15485ab1b24b4ba9288ae71e9dbcbb9d73f9969 X-Git-Newrev: a03aae8d9f5dbfe3ca3dbfe7eadc6bbe6fbbe1bc Message-Id: <20220105153456.AF29F3858430@sourceware.org> Date: Wed, 5 Jan 2022 15:34:56 +0000 (GMT) X-BeenThere: libstdc++-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jan 2022 15:34:56 -0000 https://gcc.gnu.org/g:a03aae8d9f5dbfe3ca3dbfe7eadc6bbe6fbbe1bc commit r11-9434-ga03aae8d9f5dbfe3ca3dbfe7eadc6bbe6fbbe1bc Author: Jonathan Wakely 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']