]> git.ipfire.org Git - location/libloc.git/commit
importer: Fix SyntaxWarning about regular expressions master
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 24 Jul 2025 17:33:37 +0000 (17:33 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 24 Jul 2025 17:33:37 +0000 (17:33 +0000)
commita6fa28b65d2f89ae8e818cd2e27cc3917bedfe75
treef1fa34539f56c48582188a04660a347d99b7a56e
parentd6aba77ec07504dad60f5abfb35a5634f4dc9d74
importer: Fix SyntaxWarning about regular expressions

/usr/bin/location-importer:1654: SyntaxWarning: invalid escape sequence '\s'
  route = re.compile(b"^\s(.+?)\s+.+?\[(?:AS(.*?))?.\]$")
/usr/bin/location-importer:1724: SyntaxWarning: invalid escape sequence '\s'
  m = re.match(b"\s+BGP\.as_path:.* (\d+) {\d+}$", line)

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/scripts/location-importer.in