Here’s how to reproduce
```bash
michaellaunay@Caravale:~$ sudo apt update && sudo apt dist-upgrade
michaellaunay@Caravale:~$ sudo apt install gedit
...
Paramétrage de gedit (46.2-2) ...
/usr/lib/x86_64-linux-gnu/gedit/plugins/externaltools/library.py:212:
SyntaxWarning: invalid escape sequence '\-'
RE_KEY = re.compile('^([a-zA-Z_][a-zA-Z0-9_.\-]*)(\[([a-zA-Z_@]+)\])?$')
/usr/lib/x86_64-linux-gnu/gedit/plugins/snippets/substitutionparser.py:162:
SyntaxWarning: invalid escape sequence '\s'
match = re.match('\\\\?%s\s*' % self.REG_GROUP, tokens)
```
Attached is the patch that applies the corrections described in my previous
comment
** Patch added: "This patch fixes invalid escape sequence warnings in
library.py and substitutionparser.py by converting the affected strings to raw
strings."
https://bugs.launchpad.net/ubuntu/+source/gedit/+bug/2061211/+attachment/5813334/+files/gedit_syntax_warning_fix.patch
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2061211
Title:
Invalid escape sequences in regexes when installing gedit
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gedit/+bug/2061211/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs