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

Convert old-style strings to python f-strings #502

Closed
mkavulich opened this issue Sep 25, 2023 · 1 comment
Closed

Convert old-style strings to python f-strings #502

mkavulich opened this issue Sep 25, 2023 · 1 comment

Comments

@mkavulich
Copy link
Collaborator

Description

Since Python version 3.6, a much simpler method of handling variable substitutions in strings (Formatted string literals, or "F-strings" has been introduced. Since we have deprecated python 2, and all modern machines should support at least this version of python, we should convert all strings in the framework to use F-strings where appropriate.

Solution

Convert all old-format strings to f-string format.

Alternatives (optional)

Keep old-format strings, but this is undesirable. Plus there are already f-strings in the framework, so we already don't have compatibility with older Python versions.

@mkavulich
Copy link
Collaborator Author

Duplicate of #501

@mkavulich mkavulich marked this as a duplicate of #501 Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant