Skip to content

remove superflous string formatting#4411

Merged
boegel merged 3 commits intoeasybuilders:developfrom
Flamefire:to_str
Jan 3, 2024
Merged

remove superflous string formatting#4411
boegel merged 3 commits intoeasybuilders:developfrom
Flamefire:to_str

Conversation

@Flamefire
Copy link
Copy Markdown
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
Comment thread easybuild/framework/easyconfig/format/format.py
Comment thread easybuild/tools/docs.py
@boegel boegel added this to the 4.x milestone Dec 21, 2023
Co-authored-by: Kenneth Hoste <[email protected]>
@boegel boegel modified the milestones: 4.x, release after 4.9.0 Jan 3, 2024
Copy link
Copy Markdown
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
@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