diff options
author | Jan Dittberner <jandd@cacert.org> | 2019-07-18 22:56:15 +0200 |
---|---|---|
committer | Jan Dittberner <jandd@cacert.org> | 2019-07-18 22:56:15 +0200 |
commit | 7058fe19cc6711faf9e4aaae8f978b83d73d9a74 (patch) | |
tree | 9be9a0a082227c3599792bc35a45ba2eaabbfcdb | |
parent | fd8303b2cadfe90f6e58b03fc17fc290f17f5066 (diff) | |
download | cacert-puppet-7058fe19cc6711faf9e4aaae8f978b83d73d9a74.tar.gz cacert-puppet-7058fe19cc6711faf9e4aaae8f978b83d73d9a74.tar.xz cacert-puppet-7058fe19cc6711faf9e4aaae8f978b83d73d9a74.zip |
Fix Python 3.5 compatibility for Debian Stretch
-rwxr-xr-x | sitemodules/profiles/files/puppet_server/git-pull-hook | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sitemodules/profiles/files/puppet_server/git-pull-hook b/sitemodules/profiles/files/puppet_server/git-pull-hook index a815313..0d25a20 100755 --- a/sitemodules/profiles/files/puppet_server/git-pull-hook +++ b/sitemodules/profiles/files/puppet_server/git-pull-hook @@ -87,7 +87,7 @@ class GitHookRequestHandler(BaseHTTPRequestHandler): stdout=subprocess.PIPE, stderr=subprocess.STDOUT, check=True, - text=True, + universal_newlines=True, ) for line in git_proc.stdout.splitlines(): self.log_message("git: %s", line) @@ -105,7 +105,7 @@ class GitHookRequestHandler(BaseHTTPRequestHandler): stdout=subprocess.PIPE, stderr=subprocess.STDOUT, check=True, - text=True, + universal_newlines=True, ) for line in r10k_proc.stdout.splitlines(): self.log_message("r10k: %s", line) |