]> git.ipfire.org Git - thirdparty/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)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 13 Nov 2023 15:18:10 +0000 (15:18 +0000)
commitd095aa6e96ab283e671ec453627705b7a4821d58
tree4b745b094f158ef7a319a3f80a63839722866283
parentcc2e2291a2820929ff6562cc375f53e2f1713ac5
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.

(cherry picked from commit d342c9de6a1534cbce324bcc3c7c0898ff74d386)
libstdc++-v3/python/libstdcxx/v6/printers.py
libstdc++-v3/python/libstdcxx/v6/xmethods.py