Skip to content

Conversation

@mwichmann
Copy link
Collaborator

A maintenance edit: most instances of str.find() used for membership checks like if foo.find('bar') != -1 are replaced with in or not in, or in a few cases, with the startswith() method. The vendored docbook utilities were not changed in this round though they had a couple of these.

This is all-internal, no behavioral changes, so no doc impacts.

Contributor Checklist:

  • I have created a new test or updated the unit tests to cover the new/changed functionality.
  • I have updated CHANGES.txt and RELEASE.txt (and read the README.rst).
  • I have updated the appropriate documentation

A maintenance edit: most instances of str.find() used for membership
checks like "if foo.find('bar') != -1" are replaced with "in" or "not in",
or in a few cases, with the "startswith()" method.  The vendored docbook
utilities were not changed in this round though they had a couple of these.

Signed-off-by: Mats Wichmann <[email protected]>
@mwichmann mwichmann added the maintenance Tasks to maintain internal SCons code/tools label Nov 14, 2025
Signed-off-by: Mats Wichmann <[email protected]>
@bdbaddog
Copy link
Contributor

Have you done (or do we know) any performance testing on this?
(Should be faster, but just curious)

@bdbaddog bdbaddog merged commit 18afd70 into SCons:master Nov 14, 2025
9 of 11 checks passed
@mwichmann mwichmann added this to 4.10.1 Nov 14, 2025
@github-project-automation github-project-automation bot moved this to Done in 4.10.1 Nov 14, 2025
@mwichmann mwichmann added this to the NextRelease milestone Nov 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Tasks to maintain internal SCons code/tools

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants