Skip to content

Fix DeprecationWarning: invalid escape sequence

Fixes several warnings:

apt-listchanges/DebianFiles.py:57: DeprecationWarning: invalid escape sequence \S
  source_version_re = re.compile('^\S+ \((?P<version>.*)\).*')

apt-listchanges/DebianFiles.py:146: DeprecationWarning: invalid escape sequence \s
  _changelog_header_emacs = re.compile('(;;\s*)?Local\s+variables.*', re.IGNORECASE)

apt-listchanges/apt_listchanges.py:531: DeprecationWarning: invalid escape sequence \d
  lp_bug_re        = re.compile('(?P<linktext>#(?P<bugnum>\d+))', re.I)

Signed-off-by: Mickaël Schoentgen contact@tiger-222.fr

Merge request reports

Loading