Python warning: lyx_pot.py:607: SyntaxWarning: invalid escape sequence '\w'
José Matos
jaomatos at gmail.com
Sat Jun 8 07:17:09 UTC 2024
On Sat, 2024-06-08 at 00:15 -0400, Scott Kostyshak wrote:
> In the attached patch, I just put a 'r' in front of the string inside
> re.compile(). It seems to make Python happy. Is it OK to commit?
>
> Scott
Yes, that is the right fix. :-)
Either that or doubling the backslash but IMHO your solution is more
readable and the reason why raw strings were introduced in Python.
--
José Abílio
More information about the lyx-devel
mailing list