mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-27 22:03:57 +08:00
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.
This commit is contained in:
parent
3ceb109fcb
commit
4bf77db70e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user