Skip to content

Fix: Ensure compatibility with Python versions older than 3.12#160

Merged
rangehow merged 1 commit into
mainfrom
patch-1
Jul 23, 2025
Merged

Fix: Ensure compatibility with Python versions older than 3.12#160
rangehow merged 1 commit into
mainfrom
patch-1

Conversation

@rangehow

Copy link
Copy Markdown
Collaborator

The f-string syntax used for CSV row generation is only valid in Python 3.12 and newer. This causes a SyntaxError when running the code on earlier versions like Python 3.11.

This commit replaces the incompatible f-string with a str.format() call, which is functionally identical and compatible with all supported Python 3 versions.

close #158

The f-string syntax used for CSV row generation is only valid in Python 3.12 and newer. This causes a `SyntaxError` when running the code on earlier versions like Python 3.11.

This commit replaces the incompatible f-string with a `str.format()` call, which is functionally identical and compatible with all supported Python 3 versions.
@rangehow
rangehow merged commit 01f429e into main Jul 23, 2025
1 check failed
@rangehow
rangehow deleted the patch-1 branch July 23, 2025 06:52
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.

SyntaxError: f-string expression part cannot include a backslash

1 participant