]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Correctly call _string_types function
authorTom Tromey <tromey@adacore.com>
Wed, 4 Oct 2023 14:59:47 +0000 (08:59 -0600)
committerTom Tromey <tromey@adacore.com>
Wed, 4 Oct 2023 16:38:33 +0000 (10:38 -0600)
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.

libstdc++-v3/python/libstdcxx/v6/printers.py

index e370551cbe1955070773bc90a4f1df29e435bb68..7e16a49aeb0b0d82b4edee85b8a35fbf6a492350 100644 (file)
@@ -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