diff options
| author | Magnus Hagander | 2019-01-06 11:58:27 +0000 |
|---|---|---|
| committer | Magnus Hagander | 2019-01-10 19:44:35 +0000 |
| commit | eb0a1e9991a36d2b0ddab8f8904fbe61b4ff7f58 (patch) | |
| tree | c2a2a5cc5747cffd0434d5eb14bc090211bea62a /postgresqleu/util/misc | |
| parent | 2e76533aae883fb03cdb3ec433a8a322a33e7eb8 (diff) | |
Explicit encoding fixes around invoices
Diffstat (limited to 'postgresqleu/util/misc')
| -rwxr-xr-x | postgresqleu/util/misc/baseinvoice.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/postgresqleu/util/misc/baseinvoice.py b/postgresqleu/util/misc/baseinvoice.py index f66deb55..3ed16faf 100755 --- a/postgresqleu/util/misc/baseinvoice.py +++ b/postgresqleu/util/misc/baseinvoice.py @@ -14,7 +14,7 @@ from reportlab.platypus.flowables import Image from reportlab.pdfbase.pdfmetrics import registerFont from reportlab.pdfbase.ttfonts import TTFont import qrencode -import cStringIO as StringIO +from io import BytesIO from django.conf import settings @@ -27,7 +27,7 @@ class PDFBase(object): sendertext = settings.ORG_NAME def __init__(self, recipient): - self.pdfdata = StringIO.StringIO() + self.pdfdata = BytesIO() self.canvas = Canvas(self.pdfdata) self.recipient = recipient |
