From 6a16a02adaed00cbb07c3009d3597f0a64200855 Mon Sep 17 00:00:00 2001 From: Benjamin Drung Date: Mon, 3 Nov 2014 16:55:39 +0100 Subject: [PATCH] gitlab_jenkins_trigger.py: Use StringIO instead of BytesIO for unicode .buildchain content --- gitlab_jenkins_trigger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitlab_jenkins_trigger.py b/gitlab_jenkins_trigger.py index 11da928..b78a794 100755 --- a/gitlab_jenkins_trigger.py +++ b/gitlab_jenkins_trigger.py @@ -195,7 +195,7 @@ def read_buildchain_config(data, gitlab_client, logger): config = BuildchainConfig() else: logger.info(".buildchain content:\n{content}".format(content=buildchain)) - config = BuildchainConfig(io.BytesIO(buildchain)) + config = BuildchainConfig(io.StringIO(buildchain)) return config -- 2.39.5