u-boot/scripts/dtc/pylibfdt
Florian Schmaus d4c84d7062 pylibfdt: Fix "invalid escape sequence '\w'" in setup.py
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@geekplace.eu>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
2024-03-01 09:53:47 -05:00
..
.gitignore scripts: dtc: ignore files generated generated by python 2019-11-23 14:53:48 -05:00
libfdt.i_shipped libfdt: Fix build with python 3.10 2022-10-29 07:36:33 -06:00
Makefile fdt: Move to setuptools 2022-10-29 07:36:33 -06:00
setup.py pylibfdt: Fix "invalid escape sequence '\w'" in setup.py 2024-03-01 09:53:47 -05:00