From 257b9af29a2b8f15469770e41b852cbcd2b7c49f Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Wed, 25 Jan 2017 11:20:47 +0100 Subject: [PATCH] Fixing lib/webhooks/deploy.py --- lib/webhooks/deploy.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/webhooks/deploy.py b/lib/webhooks/deploy.py index 4bb9bfd..ebacf7b 100644 --- a/lib/webhooks/deploy.py +++ b/lib/webhooks/deploy.py @@ -19,7 +19,7 @@ import json # Own modules import webhooks -from webhooks.common import pp +from webhooks.common import pp, to_bytes __version__ = webhooks.__version__ LOG = logging.getLogger(__name__) @@ -174,7 +174,8 @@ class WebhookDeployApp(object): print("Content-Type: text/plain;charset=utf-8") print() - print("Python CGI läuft") + #print(to_bytes("Python CGI läuft")) + sys.stdout.buffer.write(to_bytes("Python CGI läuft.\n")) LOG.info("Starting ...") LOG.debug("Base directory: {!r}".format(self.base_dir)) -- 2.39.5