CSAL
CSAL copied to clipboard
Modernize Python 2 code
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