Interesting discovery from automatic tools (python code)
José Matos
jaomatos at gmail.com
Sat Jul 30 16:49:05 UTC 2022
On Sat, 2022-07-30 at 14:22 +0200, Pavel Sanda wrote:
> On Sat, Jul 30, 2022 at 12:31:57PM +0100, José Matos wrote:
> > I think that this should be applied.
>
> I wanted to commit for you, but this is what I get when trying to
> apply the patch:
Oops, I took the patch in the wrong directory.
I took the chance to have another look, in order to catch other cases
where pyupgrade plays chicken or that are correct escape chars. In
particular \begin is a problem because \b is the bell :-) so IU checked
all those cases manually.
This work needs to be done for other directories.
In most the changes will be minimal for two reasons, either the escape
sequence does not exists and python ignores that sequence outputting
what we expect or the problem occurs in documentation strings.
In any case the code after this patch is more correct, and that is
always a good thing.
--
José Abílio
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python-fix.patch
Type: text/x-patch
Size: 27334 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20220730/83229014/attachment-0001.bin>
More information about the lyx-devel
mailing list