From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id 9C0D6384DB79; Mon, 13 Nov 2023 15:45:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9C0D6384DB79 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1699890326; bh=vTkIydR6X+NKyvQMmUTe0BWbXK52yHUN7JY3Dpo+66s=; h=From:To:Subject:Date:From; b=eMZKWfqZ1oz7zBd9ebqPek2f2/U+nZ1Cgl0N12gsTBzN+KFlB7Cgs1qJfwU7C8D/e w8K2MKXmliBjSpqzYghALGXz8Y+fbylZbhiOa3onvegIxKiqLfVVKlqDrspnI8y6JP 31j05mBlO3MlWuicSAQCeLefG5aGSBoWXt8zi4MY= 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 r13-8061] libstdc++: Correctly call _string_types function X-Act-Checkin: gcc X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/releases/gcc-13 X-Git-Oldrev: d095aa6e96ab283e671ec453627705b7a4821d58 X-Git-Newrev: d91ef8b438ca2ad7bc08fc7adea0572057e35593 Message-Id: <20231113154526.9C0D6384DB79@sourceware.org> Date: Mon, 13 Nov 2023 15:45:26 +0000 (GMT) List-Id: https://gcc.gnu.org/g:d91ef8b438ca2ad7bc08fc7adea0572057e35593 commit r13-8061-gd91ef8b438ca2ad7bc08fc7adea0572057e35593 Author: Tom Tromey Date: Wed Oct 4 08:59:47 2023 -0600 libstdc++: Correctly call _string_types function flake8 points out that the new call to _string_types from StdExpAnyPrinter.__init__ is not correct -- it needs to be qualified. libstdc++-v3/ChangeLog: * python/libstdcxx/v6/printers.py (StdExpAnyPrinter.__init__): Qualify call to _string_types. (cherry picked from commit 4bf77db70e2521dc89f9d7f51c7ae6e58a94b4f9) 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 e370551cbe1..7e16a49aeb0 100644 --- a/libstdc++-v3/python/libstdcxx/v6/printers.py +++ b/libstdc++-v3/python/libstdcxx/v6/printers.py @@ -1383,7 +1383,7 @@ class StdExpAnyPrinter(SingleObjContainerPrinter): # FIXME need to expand 'std::string' so that gdb.lookup_type works if 'std::string' in mgrname: mgrtypes = [] - for s in _string_types(): + for s in StdExpAnyPrinter._string_types(): try: x = re.sub(r"std::string(?!\w)", s, m.group(1)) # The following lookup might raise gdb.error if the