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

Fix syntax warning when using Python 3.12. #7022

Merged

Conversation

waywardmonkeys
Copy link
Contributor

This happens when generating the Python API and you are using Python 3.12 in the build environment:

.../z3/scripts/update_api.py:1828: SyntaxWarning: invalid escape sequence '\#'

This was a DeprecationWarning previously, but Python 3.12 changed it to a SyntaxWarning to make it more visible. The release notes indicate that this will be a syntax error in the future.

This happens when generating the Python API and you are using
Python 3.12 in the build environment:

```
.../z3/scripts/update_api.py:1828: SyntaxWarning: invalid escape sequence '\#'
```

This was a `DeprecationWarning` previously, but Python 3.12 changed
it to a `SyntaxWarning` to make it more visible. The release notes
indicate that this will be a syntax error in the future.
@NikolajBjorner NikolajBjorner merged commit 3422f44 into Z3Prover:master Nov 28, 2023
1 of 15 checks passed
@waywardmonkeys waywardmonkeys deleted the fix-syntax-warning-python-3.12 branch November 28, 2023 16:55
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.

None yet

2 participants