repo_check.py: enforce utf-8 encoding
authorMaxim Belkin <maxim.belkin@gmail.com>
Thu, 5 Dec 2019 21:36:51 +0000 (15:36 -0600)
committerMaxim Belkin <maxim.belkin@gmail.com>
Thu, 5 Dec 2019 21:36:51 +0000 (15:36 -0600)
... for compatibility with Windows

bin/repo_check.py

index 51d2fe0f1d950869dae38ccf1727692a8f8aac2c..31651fd25c3844fc6196a220c1781aa1e81d5591 100644 (file)
@@ -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]