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

chore(python): migrate string format #5043

Merged
merged 1 commit into from Mar 22, 2024

Conversation

Rotzbua
Copy link
Contributor

@Rotzbua Rotzbua commented Mar 15, 2024

From percent to f-string.

Reference

Mentioned in #5040

@t-paul
Copy link
Member

t-paul commented Mar 16, 2024

Would it make sense to go straight to f-strings? We probably are at >= Python 3.6 by now. I'm not sure if there's some sort of official view on string.format() vs. f-strings though.

@Rotzbua
Copy link
Contributor Author

Rotzbua commented Mar 17, 2024

I did not used f-string because I found no requirement for the python scripts. I think it would also be ok to assume the currently supported Python versions (>=3.8) are available.

@t-paul
Copy link
Member

t-paul commented Mar 17, 2024

Agreed, it seems the current minimum is 3.8. Added to the main readme via #5050.

  • Ubuntu focal (20.04LTS): 3.8.2-0ubuntu2
  • Debian 11 (bullseye): 3.9.2-3

From percent to f-string.
@kintel kintel merged commit d92d9c2 into openscad:master Mar 22, 2024
4 of 5 checks passed
@Rotzbua Rotzbua deleted the chore_python2_string branch March 22, 2024 01:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants