Re: [PATCH] Fix invalid escape sequence warnings

From: Srikar Dronamraju
Date: Wed Aug 23 2023 - 04:49:37 EST


* Vishal Chourasia <vishalc@xxxxxxxxxxxxx> [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 <vishalc@xxxxxxxxxxxxx>
> Reported-by: Srikar Dronamraju <srikar@xxxxxxxxxxxxxxxxxx>

Thanks, Works for me
Tested-by: Srikar Dronamraju <srikar@xxxxxxxxxxxxxxxxxx>

--
Thanks and Regards
Srikar Dronamraju