From ee2472bd429be09f183dc3f5345ad2f03c1c1393 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Sun, 6 Jan 2019 12:45:35 +0100 Subject: Generic changes for python3 from 2to3 --- postgresqleu/trustlypayment/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'postgresqleu/trustlypayment/util.py') diff --git a/postgresqleu/trustlypayment/util.py b/postgresqleu/trustlypayment/util.py index a75874e3..36b88795 100644 --- a/postgresqleu/trustlypayment/util.py +++ b/postgresqleu/trustlypayment/util.py @@ -75,7 +75,7 @@ class Trustly(TrustlyWrapper): send_simple_mail(settings.INVOICE_SENDER_EMAIL, settings.TRUSTLY_NOTIFICATION_RECEIVER, "Trustly payment error", - u"A trustly payment failed with the error:\n\n{0}".format(message), + "A trustly payment failed with the error:\n\n{0}".format(message), ) @transaction.atomic @@ -168,5 +168,5 @@ class Trustly(TrustlyWrapper): send_simple_mail(settings.INVOICE_SENDER_EMAIL, settings.TRUSTLY_NOTIFICATION_RECEIVER, "Trustly payment completed", - u"A Trustly payment of {0}{1} for invoice {2} was completed on the Trustly platform.\n\nInvoice: {3}\nRecipient name: {4}\nRecipient email: {5}\n".format(settings.CURRENCY_ABBREV, trans.amount, invoice.id, invoice.title, invoice.recipient_name, invoice.recipient_email), + "A Trustly payment of {0}{1} for invoice {2} was completed on the Trustly platform.\n\nInvoice: {3}\nRecipient name: {4}\nRecipient email: {5}\n".format(settings.CURRENCY_ABBREV, trans.amount, invoice.id, invoice.title, invoice.recipient_name, invoice.recipient_email), ) -- cgit v1.2.3