Étienne Mollier: 1
opnk.py: fix warning with python3.12.
1 files changed, 1 insertions(+), 1 deletions(-)
I think the correct way to fix this would have been to convert it
into a raw string, so that no escape sequences would be interpreted:
https://docs.python.org/3/library/re.html#module-re
I agree in principle for the regex case. In the case of the
less prompt it was unclear to me whether certain escape
sequences would makes sense in addition to the backslash, so in
doubt I preferred to stick to the double backslash.
In case a second backslash escape will be needed but no special
character, I agree with you that moving to a raw string will
make the prompt code more readable.
Have a nice day, :
Hi Paul,
Paul Wise, on 2024-03-23: