Re: SyntaxWarnings Ubuntu24.04 Python3.12

Karsten Hilbert <[email protected]> Sun, 5 May 2024 12:21:32 +0200
Newsgroups gmane.comp.gnu.medical.devel
Message-ID <[email protected]>
Am Sat, May 04, 2024 at 07:26:07PM +0200 schrieb Wolfgang Zimmermann:

> Hi together once again!
> When running GnuMed on Ubuntu24.04 (comes with Python3.12) I see a bunch
> (about 40 or more!) of SyntaxWarnings like this one:
> ...
> 2024-05-04 17:01:12  WARNING   py.warnings   [140506004402304 MainThread]
>  (/usr/lib/python3.12/warnings.py::_showwarnmsg() #110):
> /usr/share/gnumed/Gnumed/pycommon/gmTools.py:736: SyntaxWarning: invalid
> escape sequence '\s'

Dear Wolfgang,

thanks for reporting. This is Python helpfully telling us
beforehand what it is not going to tolerate in the future,
namely, ambigous backslash escapes inside strings.

I have now future-proofed all such strings and will upload a
new version of GNUmed 1.8.

Best,
Karsten
--
GPG  40BE 5B0E C98E 1713 AFA6  5BC0 3BEA AC80 7D4F C89B