diff options
author | Tom Tromey <tromey@adacore.com> | 2023-10-03 11:08:02 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-10-04 08:23:30 -0600 |
commit | 83ec6e80ff0d56342fc066c2ef649036c0983529 (patch) | |
tree | 0048b19401cb3e13c41f2900e1b69a8aa653ab84 /libstdc++-v3/python | |
parent | 027a94cf32be0b53d163e252e3c9e4800ad8f5f4 (diff) | |
download | gcc-83ec6e80ff0d56342fc066c2ef649036c0983529.zip gcc-83ec6e80ff0d56342fc066c2ef649036c0983529.tar.gz gcc-83ec6e80ff0d56342fc066c2ef649036c0983529.tar.bz2 |
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.
Diffstat (limited to 'libstdc++-v3/python')
-rw-r--r-- | libstdc++-v3/python/libstdcxx/v6/xmethods.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libstdc++-v3/python/libstdcxx/v6/xmethods.py b/libstdc++-v3/python/libstdcxx/v6/xmethods.py index 844c8a2..8ccf57c 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. |