Skip to content

Modernize Python 2 code #27

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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