From e35efb5c6148a3804e9dcf5f7dc1752727835f74 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Wed, 11 Mar 2020 18:11:54 -0700 Subject: [PATCH] Make this string an r-string so it gets better syntax highlighting. --- etiquette/exceptions.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/etiquette/exceptions.py b/etiquette/exceptions.py index 00cc806..d83c1dd 100644 --- a/etiquette/exceptions.py +++ b/etiquette/exceptions.py @@ -4,12 +4,11 @@ def pascal_to_loudsnakes(text): ''' NoSuchPhoto -> NO_SUCH_PHOTO ''' - match = re.findall('[A-Z][a-z]*', text) + match = re.findall(r'[A-Z][a-z]*', text) text = '_'.join(match) text = text.upper() return text - class ErrorTypeAdder(type): ''' During definition, the Exception class will automatically receive a class