[PATCH] pylibfdt: Fix "invalid escape sequence '\w'" in setup.py
Tom Rini
trini at konsulko.com
Fri Mar 1 19:53:54 CET 2024
On Tue, Feb 20, 2024 at 08:52:48AM -0500, Tom Rini wrote:
> From: Florian Schmaus <flo at geekplace.eu>
>
> Once u-boot's build system invokes
>
> python3 scripts/dtc/pylibfdt/setup.py --quiet build_ext --inplace
>
> it may fail with
>
> scripts/dtc/pylibfdt/setup.py:40: SyntaxWarning: invalid escape sequence '\w'
> RE_KEY_VALUE = re.compile('(?P<key>\w+) *(?P<plus>[+])?= *(?P<value>.*)$')
>
> depending on the used Python version.
>
> Explicitly mark the regex string as raw string to avoid the warning.
>
> Signed-off-by: Florian Schmaus <flo at geekplace.eu>
> Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20240301/011b5afc/attachment.sig>
More information about the U-Boot
mailing list