From: Tom Tromey Date: Tue, 3 Oct 2023 17:08:02 +0000 (-0600) Subject: libstdc++: Define _versioned_namespace in xmethods.py X-Git-Tag: releases/gcc-12.4.0~594 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51ec893bcaabdf2379a7ffcd1b0d58a7e69e2f74;p=thirdparty%2Fgcc.git libstdc++: Define _versioned_namespace in xmethods.py flake8 pointed out that is_specialization_of in xmethods.py looks at a global that wasn't added to the file. This patch correct the oversight. libstdc++-v3/ChangeLog: * python/libstdcxx/v6/xmethods.py (_versioned_namespace): Define. (cherry picked from commit 83ec6e80ff0d56342fc066c2ef649036c0983529) --- diff --git a/libstdc++-v3/python/libstdcxx/v6/xmethods.py b/libstdc++-v3/python/libstdcxx/v6/xmethods.py index 4eb39e92c4cd..16f7a116e01d 100644 --- a/libstdc++-v3/python/libstdcxx/v6/xmethods.py +++ b/libstdc++-v3/python/libstdcxx/v6/xmethods.py @@ -28,6 +28,8 @@ def get_bool_type(): def get_std_size_type(): return gdb.lookup_type('std::size_t') +_versioned_namespace = '__8::' + def is_specialization_of(x, template_name): """ Test whether a type is a specialization of the named class template.