Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove superflous string formatting #4411

Merged
merged 3 commits into from
Jan 3, 2024
Merged

Conversation

Flamefire
Copy link
Contributor

"%s" % var is the same as str(var) while the latter is faster due to less parsing, inserting etc.
In some places var was already a string so it can just be used.

`"%s" % var` is the same as `str(var)` while the latter is faster due to
less parsing, inserting etc.
In some places `var` was already a string so it can just be used.
@easybuilders easybuilders deleted a comment from boegelbot Dec 21, 2023
@boegel boegel added this to the 4.x milestone Dec 21, 2023
Co-authored-by: Kenneth Hoste <kenneth.hoste@ugent.be>
@boegel boegel modified the milestones: 4.x, release after 4.9.0 Jan 3, 2024
Copy link
Member

@boegel boegel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@boegel boegel changed the title Remove superflous string formatting remove superflous string formatting Jan 3, 2024
@boegel boegel merged commit d7cd5e3 into easybuilders:develop Jan 3, 2024
40 checks passed
@Flamefire Flamefire deleted the to_str branch January 3, 2024 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants