diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2020-06-03 15:27:46 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2020-06-03 15:40:47 (GMT) |
commit | e237fc65b70212f6ba2d8c163b1ea9bdf7b83e6a (patch) | |
tree | 106d578f438c0c743079851fdb1770fd6975fd10 /Utilities/Sphinx | |
parent | 0aa061f6f89e6ac22234dac866a975b64ad3abaa (diff) | |
download | CMake-e237fc65b70212f6ba2d8c163b1ea9bdf7b83e6a.zip CMake-e237fc65b70212f6ba2d8c163b1ea9bdf7b83e6a.tar.gz CMake-e237fc65b70212f6ba2d8c163b1ea9bdf7b83e6a.tar.bz2 |
Sphinx/create_identifiers: use `not in` not `not _ in`
Diffstat (limited to 'Utilities/Sphinx')
-rwxr-xr-x | Utilities/Sphinx/create_identifiers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Utilities/Sphinx/create_identifiers.py b/Utilities/Sphinx/create_identifiers.py index 120b63d..f3dbbcc 100755 --- a/Utilities/Sphinx/create_identifiers.py +++ b/Utilities/Sphinx/create_identifiers.py @@ -38,7 +38,7 @@ for line in lines: for domain_object_string, domain_object_type in mapping: if "<keyword name=\"" + domain_object_string + "\"" in line: - if not "id=\"" in line and not "#index-" in line: + if "id=\"" not in line and "#index-" not in line: prefix = "<keyword name=\"" + domain_object_string + "\" " part1, part2 = line.split(prefix) head, tail = part2.split("#" + domain_object_type + ":") |