Control: tags -1 + patch
N.B.: Sorry, my previous message did not come out well (I am not sure why), let's try again... On Tue, 2 Jul 2024 10:24:17 +0200 Vincent Lefevre <vinc...@vinc17.net> wrote: > On 2023-12-07 09:19:06 +0100, richardn wrote: > > python3.12 starts giving SyntaxWarning messages for invalid escape > > sequences in the checkrestart python script. With python3.11 these > > were only DeprecationWarning messages, not shown by default. > > Any news? > > Now that python3.12 is the default, this bug becomes much more visible. Hello debian-goodies package maintainer(s), I am another user who would love to see this bug fixed. I therefore prepared a patch for checkrestart. The patch just applies the conversion to raw strings suggested in the second bullet of the [Other Language Changes] section of the What's New In Python 3.12 document. And it only applies this conversion to the regular expressions that triggered SyntaxWarnings. [Other Language Changes]: <https://docs.python.org/3/whatsnew/3.12.html#other-language-changes> I think the patch is so trivial that it is not even copyrighted. Should this turn out to be not true, I hereby release the patch under the same terms as checkrestart (that is to say: GNU GPL v2 or later). The patch is attached, please apply it to checkrestart. Thanks a lot for your time and dedication! -- http://www.inventati.org/frx/ There's not a second to spare! To the laboratory! ..................................................... Francesco Poli . GnuPG key fpr == CA01 1147 9CD2 EFDF FB82 3925 3E1C 27E1 1F69 BFFE
checkrestart_syntaxwarning.diff.gz
Description: application/gzip
pgpki8Ir27vC3.pgp
Description: PGP signature