fatih / vim-go

Go development plugin for Vim
https://www.patreon.com/bhcleek
Other
15.98k stars 1.45k forks source link

fix the escape issue with python 3.12.0 #3614

Closed hsyan2008 closed 9 months ago

hsyan2008 commented 9 months ago

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 https://github.com/python/cpython/issues/98401.)

Therefore, we need use r"".