Thread (8 messages) 8 messages, 5 authors, 2023-08-31

Re: [PATCH] Fix invalid escape sequence warnings

From: Srikar Dronamraju <hidden>
Date: 2023-08-23 08:49:41
Also in: bpf, lkml

* Vishal Chourasia [off-list ref] [2023-08-16 17:51:33]:
The Python script `bpf_doc.py` uses regular expressions with
backslashes in string literals, which results in SyntaxWarnings
during its execution.

This patch addresses these warnings by converting relevant string
literals to raw strings, which interpret backslashes as literal
characters. This ensures that the regular expressions are parsed
correctly without causing any warnings.

Signed-off-by: Vishal Chourasia <redacted>
Reported-by: Srikar Dronamraju <redacted>
Thanks, Works for me
Tested-by: Srikar Dronamraju <redacted>

-- 
Thanks and Regards
Srikar Dronamraju
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help