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

Add support for Python 3.12 #709

Merged
merged 8 commits into from
Sep 27, 2023
Merged

Add support for Python 3.12 #709

merged 8 commits into from
Sep 27, 2023

Conversation

lieryan
Copy link
Member

@lieryan lieryan commented Sep 27, 2023

Description

Fixes to support Python 3.12.

Fixes #708

Checklist (delete if not relevant):

  • I have added tests that prove my fix is effective or that my feature works
  • I have updated CHANGELOG.md

ast.Str is deprecated and has now been removed from 3.12
Python 3.7 has been end-of-life.
The sample code in the test was not a valid python code, seems like
they were missing a newline. The previous tokenizer didn't mind these,
but they had always been a syntaxerror when parsed properly. The
tokenizer in Python 3.12 didn't like these forms, so we now have to fix
them.
@lieryan lieryan self-assigned this Sep 27, 2023
@lieryan lieryan added this to the 1.10.0 milestone Sep 27, 2023
@lieryan lieryan merged commit 677111a into master Sep 27, 2023
36 checks passed
@lieryan lieryan deleted the lieryan-py312 branch September 27, 2023 11:13
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.

rope incompatible with Python 3.12
1 participant