]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Use Python "not in" operator
authorTom Tromey <tromey@adacore.com>
Wed, 27 Sep 2023 15:26:01 +0000 (09:26 -0600)
committerTom Tromey <tromey@adacore.com>
Thu, 28 Sep 2023 20:56:09 +0000 (14:56 -0600)
commit202810947ca793b17653658e584008fb151e0937
treea106586023040f2d9e311d4c36b64d7b0e556c4d
parent860b284e3eea49e5bd49e6fe07c66e53faebb893
libstdc++: Use Python "not in" operator

flake8 warns about code like

    not something in "whatever"

Ordinarily in Python this should be written as:

    something not in "whatever"

This patch makes this change.

libstdc++-v3/ChangeLog:

* python/libstdcxx/v6/printers.py (Printer.add_version)
(add_one_template_type_printer)
(FilteringTypePrinter.add_one_type_printer): Use Python
"not in" operator.
libstdc++-v3/python/libstdcxx/v6/printers.py