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