messages with python3.12 Message-Id: <20240831124813.bacaee7377634378d1dd4...@paranoici.org> In-Reply-To: <20240702082417.ga113...@qaa.vinc17.org> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart=_Sat__31_Aug_2024_12_48_13_+0200_1T24GTk9XT+3TsF6"
--Multipart=_Sat__31_Aug_2024_12_48_13_+0200_1T24GTk9XT+3TsF6 Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Control: tags -1 + patch 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. >=20 > Any news? >=20 > 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=E2=80=99s= 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#oth= er-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! --=20 http://www.inventati.org/frx/ There's not a second to spare! To the laboratory! ..................................................... Francesco Poli . GnuPG key fpr =3D=3D CA01 1147 9CD2 EFDF FB82 3925 3E1C 27E1 1F69 BFFE --Multipart=_Sat__31_Aug_2024_12_48_13_+0200_1T24GTk9XT+3TsF6 Content-Type: application/gzip; name="checkrestart_syntaxwarning.diff.gz" Content-Disposition: attachment; filename="checkrestart_syntaxwarning.diff.gz" Content-Transfer-Encoding: base64 H4sICGPx0mYAA2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N9AUkV4H36UCnFmcVL3EKsuviD+9KD2kDp6zX73 yV543LiED0lkxwh9Kw0274NUrg48W1Y7H0qt6o+BLWKt5EQ6v1zy6CrE4Dby8b+doLpH3IcUo0EN Ua4UUxJpZq6ZAZ7by9tLU3gyMEhHDGmpBTA0vC5TpvA7lmhtJwzygSSbhnVOFaG583O2PWmEXOUi ozwwxWKDo4o7PM7LlFd5tGnsOy+hFLZBnziqbYMaElDLlf1rROl/VLwZH6eGO9HLZ2guo/uDIice PiKuto6pe88eV3jUtSfOirZnVc61iYpinzC+GFpU/U2VjXx1+vQ+XDhYxCxNgRc36/GfpUBcNCmk 5aZI7xBACKUthLAqbyVsBbdMP55PaRB0S83zfViVMuUVFixHLbgsDMhNhAS2lrTkAnK0qraETSKs NBUdoC5YQauxK2FKlcHUZbRbI58Yfu5r5U59fIbirgt1VEXCytQsaBSVOOC0hly4RcIpgaaRIPiL RdAsM2jboVCeHL2iULrFzdQxDoMa3t/pX91chi7sKfGpmkUa/nvvcGuxNO4XAYKdxErJdUfsg+Qk teRh0LuQbtivq56lDHvVCClI/a+/cYOLBNY4HfjYvymIe3tYiVyfOD2x6HFLd+6rn0zcYl10s5ct 5H/kMvPrFxwGKRyueFIXduJBf6ulPo5M8j5a6ZGT3aWUy6ptVTB8fc2yNbUo8gKRO8QBr/IpxBdM KaUed5NvLRRW5ZrEtwWnynJ9tg+NTvw1sixEe0H0En/Led6oWRDaquo5ulWLpqjTLHbhpH8SaSGU r0XaAjJJuNnsDC6vBv8ASzmD4bsPAAA= --Multipart=_Sat__31_Aug_2024_12_48_13_+0200_1T24GTk9XT+3TsF6--
pgpoPCcVV_Mdk.pgp
Description: PGP signature