summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilan Zamazal <mzamazal@redhat.com>2024-02-27 13:14:47 +0100
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2024-02-27 15:39:33 +0200
commit51054cef600c4e13c338b05cebf02fcf02b887d6 (patch)
tree4fec552730bc68b24e4a1b724e9215bb524bab56
parent08556380b88999cdb8dd52918f2006f4419f57c4 (diff)
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>
-rwxr-xr-xutils/checkstyle.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/checkstyle.py b/utils/checkstyle.py
index af553cfd..fb03dc34 100755
--- a/utils/checkstyle.py
+++ b/utils/checkstyle.py
@@ -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):