From 61c6f2998767cf60299a2da2106f8d304e457ead Mon Sep 17 00:00:00 2001 From: Victor Gaydov Date: Wed, 8 May 2024 15:31:01 +0400 Subject: [PATCH] Fix python warnings --- scripts/scons_helpers/format-header.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/scons_helpers/format-header.py b/scripts/scons_helpers/format-header.py index 809fcc71a..554a7392f 100644 --- a/scripts/scons_helpers/format-header.py +++ b/scripts/scons_helpers/format-header.py @@ -18,7 +18,7 @@ ''').format(datetime.datetime.now().year) def is_header(path): - return re.search('\.h$', path) + return re.search(r'\.h$', path) def is_test(path): _, basename = os.path.split(path) @@ -51,7 +51,7 @@ def make_guard(path): def make_doxygen_path(path): path = '/'.join(path.split(os.sep)) - path = re.sub('^\.?/', '', path) + path = re.sub(r'^\.?/', '', path) return '@file ' + path def make_doxygen_brief(text):