From ec294aabfb5a26f14e2890e77662ba125eab7411 Mon Sep 17 00:00:00 2001 From: Maxim Belkin Date: Thu, 5 Dec 2019 15:36:51 -0600 Subject: [PATCH] repo_check.py: enforce utf-8 encoding ... for compatibility with Windows --- bin/repo_check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/repo_check.py b/bin/repo_check.py index 51d2fe0..31651fd 100644 --- a/bin/repo_check.py +++ b/bin/repo_check.py @@ -102,7 +102,7 @@ def get_repo_url(repo_url): # Guess. cmd = 'git remote -v' p = Popen(cmd, shell=True, stdin=PIPE, stdout=PIPE, - close_fds=True, universal_newlines=True) + close_fds=True, universal_newlines=True, encoding='utf-8') stdout_data, stderr_data = p.communicate() stdout_data = stdout_data.split('\n') matches = [P_GIT_REMOTE.match(line) for line in stdout_data] -- 2.30.2