Swap to pycodestyle rather than pep8 in Travis

And eliminate W605 errors
This commit is contained in:
2020-02-21 12:20:44 +00:00
parent 3cf13299eb
commit cf7934974e
5 changed files with 6 additions and 6 deletions

View File

@@ -69,7 +69,7 @@ def send_eventauthorisation_success_email(instance):
external_styles=css).transform()
client_email.attach_alternative(html, 'text/html')
escapedEventName = re.sub('[^a-zA-Z0-9 \n\.]', '', instance.event.name)
escapedEventName = re.sub(r'[^a-zA-Z0-9 \n\.]', '', instance.event.name)
client_email.attach('N%05d - %s - CONFIRMATION.pdf' % (instance.event.pk, escapedEventName),
merged.getvalue(),