]> gcc.gnu.org Git - gcc.git/commit
libstdc++: _versioned_namespace is always non-None
authorTom Tromey <tromey@adacore.com>
Tue, 3 Oct 2023 17:14:45 +0000 (11:14 -0600)
committerTom Tromey <tromey@adacore.com>
Wed, 4 Oct 2023 14:23:30 +0000 (08:23 -0600)
commitd342c9de6a1534cbce324bcc3c7c0898ff74d386
tree77ac67589d1f49db2d17fea956dba356c0b6927e
parent83ec6e80ff0d56342fc066c2ef649036c0983529
libstdc++: _versioned_namespace is always non-None

Some code in the pretty-printers seems to assume that the
_versioned_namespace global might be None (or the empty string).
However, doesn't occur, as the variable is never reassigned.

libstdc++-v3/ChangeLog:

* python/libstdcxx/v6/printers.py: Assume that
_versioned_namespace is non-None.
* python/libstdcxx/v6/xmethods.py (is_specialization_of):
Assume that _versioned_namespace is non-None.
libstdc++-v3/python/libstdcxx/v6/printers.py
libstdc++-v3/python/libstdcxx/v6/xmethods.py
This page took 0.057995 seconds and 5 git commands to generate.