]> git.puffer.fish Git - matthieu/frr.git/commit
tools: Fix python string escape warnings for frr-reload.py
authorDonatas Abraitis <donatas@opensourcerouting.org>
Wed, 7 Aug 2024 14:46:57 +0000 (17:46 +0300)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Thu, 8 Aug 2024 05:46:39 +0000 (08:46 +0300)
commit850076b3a1fb09b70c8a5da1bd14202238e0e321
treee18bf368059c5fc65938b61cc37716f4c7f0f80c
parentd3047146975475aaeaf81804571afdb2d08e6e20
tools: Fix python string escape warnings for frr-reload.py

When using a regex (or anything that uses `\?` escapes) in python, raw
strings (`r"content"`) should be used so python doesn't consume the
escapes itself.  Otherwise we get either broken behavior and/or
`SyntaxWarning: invalid escape sequence '\['`

Fixes: 8916953b534f64a7545860ad5b4b36dc2544f33a ("build: fix a few python string escape warnings")
Fixes: https://github.com/FRRouting/frr/issues/16522
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
tools/frr-reload.py