Bug#1062039: SyntaxWarning: invalid escape sequence
Control: tags -1 + patch The patch below was applied in Ubuntu. --- a/axi/__init__.py +++ b/axi/__init__.py @@ -51,8 +51,8 @@ Read the "/etc/services"-style database of value indices """ try: -re_empty = re.compile("^\s*(?:#.*)?$") -re_value = re.compile("^(\S+)\s+(\d+)(?:\s*#\s*(.+))?$") +re_empty = re.compile(r"^\s*(?:#.*)?$") +re_value = re.compile(r"^(\S+)\s+(\d+)(?:\s*#\s*(.+))?$") values: dict[str, int] = {} descs: dict[str, str] = {} for idx, line in enumerate(open(pathname)):
Bug#1062039: SyntaxWarning: invalid escape sequence
Package: apt-xapian-index Version: 0.54 Severity: normal X-Debbugs-Cc: johnny.faul...@yahoo.com Dear Maintainer, whilst installing apt-xapian-index, I get the following: /usr/lib/python3/dist-packages/axi/__init__.py:54: SyntaxWarning: invalid escape sequence '\s' re_empty = re.compile("^\s*(?:#.*)?$") the package installs normall and doesn't have any immediate effect on anything. easily reproduced by attempting to install it.