On 30 Oct 2023, at 21:10, Ilya Maximets wrote:

> A few general style issues like extra spacing and block comment format.
> And a few invalid escape sequences, which are not actual escape
> sequences, but cause actual syntax warnings starting python 3.12 and
> will eventually become syntax errors [1]:
>
>  extract-ofp-fields:323: SyntaxWarning: invalid escape sequence '\_'
>   "\_;\_;\_;\_;\_;\_\n",
>  extract-ofp-fields:332: SyntaxWarning: invalid escape sequence '\_'
>   s = """tab(;);
>  extract-ofp-fields:374: SyntaxWarning: invalid escape sequence '\-'
>   """\
>
> These are fixed by converting to raw strings.  While doing that we
> also have to remove all the now unnecessary escaping from actual
> escape sequences like '\\'.
>
> [1] https://docs.python.org/3/reference/lexical_analysis.html#escape-sequences
>
> Signed-off-by: Ilya Maximets <[email protected]>
Thanks for fixing this, and the changes look good to me.

Acked-by: Eelco Chaudron <[email protected]>

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to