Make this string an r-string so it gets better syntax highlighting.
This commit is contained in:
parent
6529aedde6
commit
e35efb5c61
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue