From 379b53e6cef978927b943bb84fd903259e0641e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Bastian?= Date: Mon, 26 Feb 2018 17:24:22 +0100 Subject: [PATCH] Fix printing in gen_history --- histories/management/commands/gen_history.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/histories/management/commands/gen_history.py b/histories/management/commands/gen_history.py index 3a2a616..68476ee 100644 --- a/histories/management/commands/gen_history.py +++ b/histories/management/commands/gen_history.py @@ -13,4 +13,4 @@ class Command(BaseCommand): def handle(self, *args, **kwargs): prof = profiles.Profile.objects.all()[0] history = generate_history(prof, datetime.now()) - self.stdout.write(history.to_xml_string()) + print(history.to_xml_string())