Branch: refs/heads/master Author: Enrico Tröger enrico.troeger@uvena.de Committer: Enrico Tröger enrico.troeger@uvena.de Date: Sun, 29 May 2022 14:14:15 UTC Commit: 6255f7306d11db4df34deaa88cb592007781b01d https://github.com/geany/infrastructure/commit/6255f7306d11db4df34deaa88cb59...
Log Message: ----------- Port commit mail scripts to Python3 and PEP8
Modified Paths: -------------- scripts/git_hooks/geany_commit_utils.py
Modified: scripts/git_hooks/geany_commit_utils.py 2 lines changed, 2 insertions(+), 0 deletions(-) =================================================================== @@ -31,12 +31,14 @@ def run_command(repository_path, command, redirect_stdout=None, run_as=None, log stdout, stderr = process.communicate() output = '' if stdout: + stdout = stdout.decode('utf-8') output = f'{output}\nStdout:\n{stdout}' if redirect_stdout: with open(redirect_stdout, 'w', encoding='utf-8') as target_file: target_file.write(stdout)
if stderr: + stderr = stderr.decode('utf-8') output = f'{output}\nStderr:\n{stderr}' if logger: exit_code = process.returncode
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).