From 349cc325d72ae64500d2291a45c3f7a64faabe6a Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Mon, 30 May 2016 18:35:45 +0200 Subject: [PATCH] use print here, we are selfless --- shop/pdf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shop/pdf.py b/shop/pdf.py index 8a7c5cfa..d16560d9 100644 --- a/shop/pdf.py +++ b/shop/pdf.py @@ -41,7 +41,7 @@ def generate_pdf_letter(filename, template, formatdict): ### save the generated pdf to the archive with open(settings.PDF_ARCHIVE_PATH+filename, 'w') as fh: finalpdf.write(fh) - self.stdout.write('Saved pdf to archive: %s' % settings.PDF_ARCHIVE_PATH+filename) + print('Saved pdf to archive: %s' % settings.PDF_ARCHIVE_PATH+filename) ### return a file object with the data returnfile = StringIO.StringIO()