Make this string an r-string so it gets better syntax highlighting.

This commit is contained in:
voussoir 2020-03-11 18:11:54 -07:00
parent 6529aedde6
commit e35efb5c61

View file

@ -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