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 strftime in f-string to use date format specifier #10

Merged
merged 2 commits into from
Apr 15, 2024

Conversation

UnknownPlatypus
Copy link
Owner

- f"Now: {dt.datetime.now().strftime('%Y-%m-%d')}"
+ f"Now: {dt.datetime.now():%Y-%m-%d}"

This also support single quotes, raw string and triple-quoted strings.
Also work with python3.12 new f-string parsing

@UnknownPlatypus UnknownPlatypus merged commit 1ea2712 into poc/additional-fixers Apr 15, 2024
6 checks passed
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.

1 participant