public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-8061] libstdc++: Correctly call _string_types function
@ 2023-11-13 15:45 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2023-11-13 15:45 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:d91ef8b438ca2ad7bc08fc7adea0572057e35593

commit r13-8061-gd91ef8b438ca2ad7bc08fc7adea0572057e35593
Author: Tom Tromey <tromey@adacore.com>
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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-11-13 15:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-13 15:45 [gcc r13-8061] libstdc++: Correctly call _string_types function Jonathan Wakely

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).