From 6653ce8ab102d16224dabebb8bfa884198698b73 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Fri, 29 Mar 2019 14:53:47 +0100 Subject: [PATCH 1/1] Fixes #3916: Erroneous ONIX file. --- src/isbn/management/commands/export_onix.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/isbn/management/commands/export_onix.py b/src/isbn/management/commands/export_onix.py index 386dd1b99..a78e882fa 100644 --- a/src/isbn/management/commands/export_onix.py +++ b/src/isbn/management/commands/export_onix.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals from django.core.management.base import BaseCommand from django.utils import timezone @@ -113,7 +111,7 @@ class Command(BaseCommand): for record in ONIXRecord.objects.all(): xml += self.render_product(record) xml += FOOTER - print(xml.encode('utf-8')) + print(xml) def render_product(self, record): if record.product_form_detail: -- 2.20.1