Re: Python warning: lyx_pot.py:607: SyntaxWarning: invalid escape sequence '\w'

2024-06-09 Thread Scott Kostyshak
On Sat, Jun 08, 2024 at 09:27:19PM GMT, José Matos wrote: > On Sat, 2024-06-08 at 12:14 -0400, Scott Kostyshak wrote: > > Another question: from googling it seems that the command > > > >   python -W error foobar.py > > > > would give an error (which hopefully would stop the build). > > > Accor

Re: Python warning: lyx_pot.py:607: SyntaxWarning: invalid escape sequence '\w'

2024-06-08 Thread José Matos
On Sat, 2024-06-08 at 12:14 -0400, Scott Kostyshak wrote: > Another question: from googling it seems that the command > >   python -W error foobar.py > > would give an error (which hopefully would stop the build). According to the man page there is no space in between, it should be - Werror or

Re: Python warning: lyx_pot.py:607: SyntaxWarning: invalid escape sequence '\w'

2024-06-08 Thread Scott Kostyshak
On Sat, Jun 08, 2024 at 08:17:09AM GMT, José Matos wrote: > 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 r

Re: Python warning: lyx_pot.py:607: SyntaxWarning: invalid escape sequence '\w'

2024-06-08 Thread José Matos
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 solut