public inbox for libstdc++-cvs@sourceware.org help / color / mirror / Atom feed
From: Jonathan Wakely <redi@gcc.gnu.org> 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 Date: Wed, 5 Jan 2022 17:53:58 +0000 (GMT) [thread overview] Message-ID: <20220105175358.B21A63858008@sourceware.org> (raw) https://gcc.gnu.org/g:fa5e1ca4fde63c4d5f6323a2ecc23ed1389049e7 commit r10-10377-gfa5e1ca4fde63c4d5f6323a2ecc23ed1389049e7 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 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']
reply other threads:[~2022-01-05 17:53 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220105175358.B21A63858008@sourceware.org \ --to=redi@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ --cc=libstdc++-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).