diff --git a/git_config.py b/git_config.py index 680de90f..8de3200c 100644 --- a/git_config.py +++ b/git_config.py @@ -528,7 +528,7 @@ def GetUrlCookieFile(url, quiet): cookiefile = None proxy = None for line in p.stdout: - line = line.strip() + line = line.strip().decode('utf-8') if line.startswith(cookieprefix): cookiefile = os.path.expanduser(line[len(cookieprefix):]) if line.startswith(proxyprefix): @@ -540,7 +540,7 @@ def GetUrlCookieFile(url, quiet): finally: p.stdin.close() if p.wait(): - err_msg = p.stderr.read() + err_msg = p.stderr.read().decode('utf-8') if ' -print_config' in err_msg: pass # Persistent proxy doesn't support -print_config. elif not quiet: