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 the escape issue with python 3.12.0 #3614

Merged
merged 1 commit into from Dec 23, 2023
Merged

fix the escape issue with python 3.12.0 #3614

merged 1 commit into from Dec 23, 2023

Conversation

hsyan2008
Copy link
Contributor

Here is the update with 3.12.0.

A backslash-character pair that is not a valid escape sequence now generates a SyntaxWarning, instead of DeprecationWarning. For example, re.compile("\d+.\d+") now emits a SyntaxWarning ("\d" is an invalid escape sequence, use raw strings for regular expression: re.compile(r"\d+.\d+")). In a future Python version, SyntaxError will eventually be raised, instead of SyntaxWarning. (Contributed by Victor Stinner in python/cpython#98401.)

Therefore, we need use r"".

@bhcleek bhcleek added this to the vim-go v1.29 milestone Dec 23, 2023
@bhcleek bhcleek merged commit 7410dd6 into fatih:master Dec 23, 2023
8 checks passed
bhcleek added a commit that referenced this pull request Dec 23, 2023
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