Skip to content

Conversation

cclauss
Copy link

@cclauss cclauss commented Feb 2, 2025

Remove the Python 3 syntax errors from three files.

  • print() is a function in Python 3.
ruff check --ignore=ALL  # Returns the files that have syntax errors.
 
uv tool run --python=3.12 --from=future futurize --stage1 --write \
    experimental/csprofile_decode.py \
    experimental/csprofile_read.py \
    python/csreg_tc2.py

ruff check --ignore=ALL  # Make sure there are no more syntax errors.

https://python-future.org/automatic_conversion.html#stage-1-safe-fixes
https://docs.astral.sh/ruff
https://docs.astral.sh/ruff/linter

@algrant-arm

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