fix DeprecationWarning: invalid escape sequence. #9033
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
拉取/合并请求描述:(PR description)
[
在linux平台python3使用scons编译的时候会对转义字符报警告,本次提交旨在解决消除编译时候产生的警告。
为什么提交这份PR (why to submit this PR)
为了scons编译时不再产生警告
你的解决方案是什么 (what is your solution)
在 Python 中,正则表达式字符串通常包含许多反斜杠 () 来转义特殊字符。为了避免这些反斜杠被 Python 自身的字符串解析器误解,可以使用原始字符串(raw string)表示法。原始字符串通过在字符串前面加一个 r 来表示,它告诉 Python 不要处理反斜杠,这样反斜杠就直接传递给正则表达式解析器。
请提供验证的bsp和config (provide the config and bsp)
本地开发阶段发现的问题,bsp不会提交到当前库当中
无
无
]
当前拉取/合并请求的状态 Intent for your PR
必须选择一项 Choose one (Mandatory):
代码质量 Code Quality:
我在这个拉取/合并请求中已经考虑了 As part of this pull request, I've considered the following:
#if 0
代码,不包含已经被注释了的代码 All redundant code is removed and cleaned up