diff options
author | Thomas Haller <thaller@redhat.com> | 2023-07-25 13:50:16 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2023-07-25 13:52:34 (GMT) |
commit | f4875c69bd079adf7d2e5cb6d13948fec29b20cc (patch) | |
tree | b34686bc57f18af338cc8f6650a7cf49b8e19b1a | |
parent | 9a3d91dfc791ce54565e04834b6d9937fe74a602 (diff) | |
download | libnl-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-x | doc/resolve-asciidoc-refs.py | 2 |
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 + ">>" |