libstdc++: Fix std::error_code pretty printer for versioned namespace

libstdc++-v3/ChangeLog:

	* python/libstdcxx/v6/printers.py (StdErrorCodePrinter): Strip
	versioned namespace from the type name that is printed.
This commit is contained in:
Jonathan Wakely 2022-01-05 14:06:43 +00:00
parent 7a2f2d91aa
commit 1918067e2d
1 changed files with 1 additions and 1 deletions

View File

@ -1522,7 +1522,7 @@ class StdErrorCodePrinter:
def __init__ (self, typename, val):
self.val = val
self.typename = typename
self.typename = strip_versioned_namespace(typename)
# Do this only once ...
if StdErrorCodePrinter._errno_categories is None:
StdErrorCodePrinter._errno_categories = ['generic']