From 709226673bb04177e70653dc2d3ec69bb9da1242 Mon Sep 17 00:00:00 2001 From: Randolph Sapp Date: Fri, 29 Nov 2024 15:35:07 -0600 Subject: [PATCH] fix(scripts): invalid regex escape sequence Regular expression was not using raw string. Fixes the following warning: SyntaxWarning: invalid escape sequence '\.' Signed-off-by: Randolph Sapp --- scripts/sectinc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/sectinc.py b/scripts/sectinc.py index 0020b04cc..88b679829 100644 --- a/scripts/sectinc.py +++ b/scripts/sectinc.py @@ -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")