From a0931dc088359575af6bdfb901e092f7b0d319ed Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 23 Nov 2023 22:46:53 +0000 Subject: [PATCH] python 12 fix syntax --- scripts/make-folklist.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/make-folklist.py b/scripts/make-folklist.py index 11cf8ce27..e2389e6ee 100644 --- a/scripts/make-folklist.py +++ b/scripts/make-folklist.py @@ -28,13 +28,13 @@ def troggle_slugify(longname): This function copied instact from troggle/parsers/people/py """ slug = longname.strip().lower().replace(" ","-") - slug = re.sub('\([^\)]*\)','',slug) # remove nickname in brackets + slug = re.sub(r'\([^\)]*\)','',slug) # remove nickname in brackets slug = slug.replace('é', 'e') slug = slug.replace('á', 'a') slug = slug.replace('ä', 'a') slug = slug.replace('&', '') # otherwise just remove the & slug = slug.replace(';', '') # otherwise just remove the ; - slug = re.sub('<[^>]*>','',slug) # remove + slug = re.sub(r'<[^>]*>','',slug) # remove if len(slug) > 40: # slugfield is 50 chars slug = slug[:40]