Mark RegEx string as raw

This commit is contained in:
Andrew Dickinson 2020-04-17 15:53:28 -04:00
parent 9a875fd476
commit 114c151501

View file

@ -2250,7 +2250,7 @@ class ModelsTestCase(IhatemoneyTestCase):
def em_surround(string, regex_escape=False):
if regex_escape:
return '<em class="font-italic">%s<\/em>' % string
return r'<em class="font-italic">%s<\/em>' % string
else:
return '<em class="font-italic">%s</em>' % string