summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2023-07-25 13:50:16 (GMT)
committerThomas Haller <thaller@redhat.com>2023-07-25 13:52:34 (GMT)
commitf4875c69bd079adf7d2e5cb6d13948fec29b20cc (patch)
treeb34686bc57f18af338cc8f6650a7cf49b8e19b1a
parent9a3d91dfc791ce54565e04834b6d9937fe74a602 (diff)
downloadlibnl-f4875c69bd079adf7d2e5cb6d13948fec29b20cc.zip
libnl-f4875c69bd079adf7d2e5cb6d13948fec29b20cc.tar.gz
libnl-f4875c69bd079adf7d2e5cb6d13948fec29b20cc.tar.bz2
python: fix flake8 warnings W605
./doc/resolve-asciidoc-refs.py:14:22: W605 invalid escape sequence '\[' ./doc/resolve-asciidoc-refs.py:14:24: W605 invalid escape sequence '\[' ./doc/resolve-asciidoc-refs.py:14:30: W605 invalid escape sequence '\]' ./doc/resolve-asciidoc-refs.py:14:32: W605 invalid escape sequence '\]'
-rwxr-xr-xdoc/resolve-asciidoc-refs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/resolve-asciidoc-refs.py b/doc/resolve-asciidoc-refs.py
index 0e8bebc..d661c56 100755
--- a/doc/resolve-asciidoc-refs.py
+++ b/doc/resolve-asciidoc-refs.py
@@ -11,7 +11,7 @@ complete_file = ""
for line in open(sys.argv[1], "r"):
complete_file += line
-for m in re.findall("\[\[(.+)\]\]\n=+ ([^\n]+)", complete_file):
+for m in re.findall("\\[\\[(.+)\\]\\]\n=+ ([^\n]+)", complete_file):
ref, title = m
refs["<<" + ref + ">>"] = "<<" + ref + ", " + title + ">>"