Skip to content

Commit

Permalink
fix(scripts): invalid regex escape sequence
Browse files Browse the repository at this point in the history
Regular expression was not using raw string. Fixes the following
warning:

SyntaxWarning: invalid escape sequence '\.'

Signed-off-by: Randolph Sapp <[email protected]>
  • Loading branch information
StaticRocket authored and praneethbajjuri committed Dec 4, 2024
1 parent 9f7c537 commit 7092266
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/sectinc.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def get_toctree_entries(app, toctreenodefile):
rststring = rstfilelocation[0]
if rststring:
# Append the found .rst file to the toctreesections list
toctreesections.append(re.sub('\.rst$', '', rststring))
toctreesections.append(re.sub(r'\.rst$', '', rststring))
else:
print("TOC Tree Entry is not a defined .rst file in current directory")

Expand Down

0 comments on commit 7092266

Please sign in to comment.