From: Frank Brehm Date: Wed, 25 Jan 2017 10:20:47 +0000 (+0100) Subject: Fixing lib/webhooks/deploy.py X-Git-Tag: 0.8.4~54 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=257b9af29a2b8f15469770e41b852cbcd2b7c49f;p=pixelpark%2Fpuppetmaster-webhooks.git Fixing lib/webhooks/deploy.py --- 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))