summaryrefslogtreecommitdiffstats
path: root/scripts/patchtest
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@gmail.com>2025-01-03 09:08:09 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-01-04 12:34:04 +0000
commit8417dfa280ef91c6a4eb4e9e6b5e9c48653be0d6 (patch)
treec60101e7683fd6729e63f25756004e96a24a6673 /scripts/patchtest
parent671fe42da424fa1d9e5db6d4e29dd702dbb1ce1a (diff)
downloadpoky-8417dfa280ef91c6a4eb4e9e6b5e9c48653be0d6.tar.gz
kern-tools: fix python 3.12 warning
Integrating the following commit: Author: hongxu <hongxu.jia@eng.windriver.com> Date: Tue Dec 17 01:47:19 2024 -0800 symbol_why: fix SyntaxWarning for RegEx calls on Python 3.12 Python 3.12 emmits a SyntaxWarning when using unescaped character inside a RegEx string. ''' recipe-sysroot-native/usr/bin/symbol_why.py:161: SyntaxWarning: invalid escape sequence '\.' if re.match( ".*\.config", opt ): recipe-sysroot-native/usr/bin/symbol_why.py:216: SyntaxWarning: invalid escape sequence '\w' x = re.match( "^# .*Linux/\w*\s*([0-9]*\.[0-9]*\.[0-9]*).*Kernel Configuration", line ) recipe-sysroot-native/usr/bin/symbol_why.py:495: SyntaxWarning: invalid escape sequence '\s' if re.search( "^#\s*CONFIG_", option ): ''' According to [1], use raw strings for regular expression [1] https://docs.python.org/dev/whatsnew/3.12.html#other-language-changes Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> (From OE-Core rev: 18d60c209364f01f183000de8640f6f40496e922) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/patchtest')
0 files changed, 0 insertions, 0 deletions