From 4e04641c388dfcbeec3783c6a70960707977def7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Thu, 30 Nov 2017 00:40:21 +0200 Subject: [PATCH] One more py2 fix --- hc/payments/invoices.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hc/payments/invoices.py b/hc/payments/invoices.py index 5b832b9c..9acc5f3a 100644 --- a/hc/payments/invoices.py +++ b/hc/payments/invoices.py @@ -14,8 +14,7 @@ def f(dt): class PdfInvoice(canvas.Canvas): def __init__(self, fileobj): - super(PdfInvoice, self).__init__(fileobj, pagesize=A4, - pageCompression=0) + canvas.Canvas.__init__(self, fileobj, pagesize=A4, pageCompression=0) self.head_y = H - inch * 0.5 def linefeed(self):