Skip to content

Commit

Permalink
Fix python warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
gavv committed May 8, 2024
1 parent e4d86df commit 61c6f29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/scons_helpers/format-header.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 61c6f29

Please sign in to comment.