utils: checkstyle.py: Update LogCategoryChecker regexp
The regexp uses obsolete form, update it to mute the warning emitted by Python 3.12: SyntaxWarning: invalid escape sequence '\(' Signed-off-by: Milan Zamazal <mzamazal@redhat.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
08556380b8
commit
51054cef60
1 changed files with 1 additions and 1 deletions
|
@ -588,7 +588,7 @@ class IncludeChecker(StyleChecker):
|
|||
|
||||
|
||||
class LogCategoryChecker(StyleChecker):
|
||||
log_regex = re.compile('\\bLOG\((Debug|Info|Warning|Error|Fatal)\)')
|
||||
log_regex = re.compile(r'\bLOG\((Debug|Info|Warning|Error|Fatal)\)')
|
||||
patterns = ('*.cpp',)
|
||||
|
||||
def __init__(self, content):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue