From 4fb2a61fa73f0991a8903a89de14b478257ba5aa Mon Sep 17 00:00:00 2001 From: Jasper Craeghs Date: Thu, 12 Sep 2024 16:49:47 +0200 Subject: [PATCH] Address syntax warnings --- mlx/robot2rst.mako | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mlx/robot2rst.mako b/mlx/robot2rst.mako index a778083..579d69c 100644 --- a/mlx/robot2rst.mako +++ b/mlx/robot2rst.mako @@ -21,13 +21,13 @@ def to_traceable_item(name, prefix=''): # Move to capitals name = name.upper() # Replace ' : ' (or alike) by '-' - name = re.sub('\s*:\s*', '-', name) + name = re.sub(r'\s*:\s*', '-', name) # Replace '&' by 'AND' name = name.replace('&', 'AND') # Remove other special characters - name = re.sub('[^\w\s_-]', '', name) + name = re.sub(r'[^\w\s_-]', '', name) # Replace spaces with single underscore - name = re.sub('\s+', '_', name) + name = re.sub(r'\s+', '_', name) return name