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

Modernize Python 2 code #262

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

Conversation

cclauss
Copy link
Contributor

@cclauss cclauss commented Feb 2, 2025

Remove the Python 3 syntax errors from two files.

  • print() is a function in Python 3.
  • Octal literals must start with 0o in Python 3.
uv tool run --python=3.12 --from=future futurize --stage1 --write \
  software/processdump/create_json.py \
  software/processdump/split_video.py

https://python-future.org/automatic_conversion.html#stage-1-safe-fixes

@cclauss cclauss force-pushed the python-futurize-stage1 branch from e8549ef to fca663e Compare February 2, 2025 11:00
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