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

@@ -76,7 +76,7 @@ class InvoicePrint(generic.View):
pdfData = buffer.read()
escapedEventName = re.sub('[^a-zA-Z0-9 \n\.]', '', object.name)
escapedEventName = re.sub(r'[^a-zA-Z0-9 \n\.]', '', object.name)
response = HttpResponse(content_type='application/pdf')
response['Content-Disposition'] = "filename=Invoice %05d - N%05d | %s.pdf" % (invoice.pk, invoice.event.pk, escapedEventName)