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

avocado/core/output.py: use fstrings instead of addition of strings #5895

Closed
wants to merge 1 commit into from

Conversation

clebergnu
Copy link
Contributor

First, there's a slight performance advantage in using fstrings instead of adding strings together. Second, this changes makes the output utility not enforce policy when it comes to types, that is, if the message to be printed is "None", it will be converted to a string, instead of raising TypeError.

First, there's a slight performance advantage in using fstrings
instead of adding strings together.  Second, this changes makes the
output utility not enforce policy when it comes to types, that is,
if the message to be printed is "None", it will be converted to a
string, instead of raising TypeError.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
@clebergnu clebergnu added this to the #105 - Codename TBD milestone Apr 2, 2024
@clebergnu clebergnu self-assigned this Apr 2, 2024
@clebergnu clebergnu requested a review from richtja April 2, 2024 09:44
@clebergnu clebergnu closed this Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done 105
Development

Successfully merging this pull request may close these issues.

None yet

1 participant