On Thu, Apr 11, 2024 at 12:43:28AM +0200, Ilya Maximets wrote:
> ovsdb-doc script generates the following syntax warning while running
> with Python 3.12:
>
> /ovsdb/ovsdb-doc:240: SyntaxWarning: invalid escape sequence '\{'
> s += """
>
> This doesn't cause a build failure because so far it's only a warning,
> but it will become a syntax error in the future.
>
> Fix that by converting to a raw string and removing unnecessary
> escape sequences.
>
> Adding ovsdb-doc to flake8-check to avoid re-introducing issues in
> the future. This means also fixing all the other issues with the
> script like unused imports and variables, long lines, missing empty
> lines, wildcarded imports. Also cleaning up one place that handles
> compatibility with Python 2 types, since we do not support Python 2
> for a long time now.
>
> Signed-off-by: Ilya Maximets <[email protected]>
Acked-by: Simon Horman <[email protected]>
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev