From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id B21A63858008; Wed, 5 Jan 2022 17:53:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B21A63858008 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 r10-10377] 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-10 X-Git-Oldrev: 1794a68eb468fe74f3600501c94289491e2b527d X-Git-Newrev: fa5e1ca4fde63c4d5f6323a2ecc23ed1389049e7 Message-Id: <20220105175358.B21A63858008@sourceware.org> Date: Wed, 5 Jan 2022 17:53:58 +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 17:53:58 -0000 https://gcc.gnu.org/g:fa5e1ca4fde63c4d5f6323a2ecc23ed1389049e7 commit r10-10377-gfa5e1ca4fde63c4d5f6323a2ecc23ed1389049e7 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 83e0d2e7e34..74c629a710c 100644 --- a/libstdc++-v3/python/libstdcxx/v6/printers.py +++ b/libstdc++-v3/python/libstdcxx/v6/printers.py @@ -1503,7 +1503,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']