diff options
author | Tom Tromey <tromey@adacore.com> | 2023-10-04 08:59:47 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-10-04 10:38:33 -0600 |
commit | 4bf77db70e2521dc89f9d7f51c7ae6e58a94b4f9 (patch) | |
tree | 78da27061a5ad56f945de6a6829bf125bbfa1d4a /libstdc++-v3/python | |
parent | 3ceb109fcb045de9d78b650112399bbb7df78cdc (diff) | |
download | gcc-4bf77db70e2521dc89f9d7f51c7ae6e58a94b4f9.zip gcc-4bf77db70e2521dc89f9d7f51c7ae6e58a94b4f9.tar.gz gcc-4bf77db70e2521dc89f9d7f51c7ae6e58a94b4f9.tar.bz2 |
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.
Diffstat (limited to 'libstdc++-v3/python')
-rw-r--r-- | libstdc++-v3/python/libstdcxx/v6/printers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/python/libstdcxx/v6/printers.py b/libstdc++-v3/python/libstdcxx/v6/printers.py index e370551..7e16a49a 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 |