Skip to content

Support Python 3.14#51

Open
jvoisin wants to merge 2 commits into
thatch:masterfrom
jvoisin:pi
Open

Support Python 3.14#51
jvoisin wants to merge 2 commits into
thatch:masterfrom
jvoisin:pi

Conversation

@jvoisin

@jvoisin jvoisin commented Jul 15, 2026

Copy link
Copy Markdown

Fix removed/deprecated stdlib APIs so the test suite passes on Python 3.14 without warnings:

  • Replace ast.Str/.s (removed in 3.12) with ast.Constant/.value, guarding string constants with isinstance(..., str).
  • Import sre_parse/sre_constants as re._parser/re._constants (available since 3.11), falling back to the legacy modules on older versions.

jvoisin added 2 commits July 16, 2026 00:51
Fix removed/deprecated stdlib APIs so the test suite passes on Python
3.14 without warnings:

- Replace ast.Str/.s (removed in 3.12) with ast.Constant/.value,
  guarding string constants with isinstance(..., str).
- Import sre_parse/sre_constants as re._parser/re._constants (available
  since 3.11), falling back to the legacy modules on older versions.
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