From 27f483dce4106eff18cd58d171032919d6c1d185 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 2 Sep 2020 10:51:52 +0530 Subject: [PATCH] py3 compat --- setup/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/__init__.py b/setup/__init__.py index 0fe060a5c1..f03f81179b 100644 --- a/setup/__init__.py +++ b/setup/__init__.py @@ -74,7 +74,7 @@ def build_cache_dir(): def require_git_master(branch='master'): - if subprocess.check_output(['git', 'symbolic-ref', '--short', 'HEAD']).strip() != branch: + if subprocess.check_output(['git', 'symbolic-ref', '--short', 'HEAD']).decode('utf-8').strip() != branch: raise SystemExit('You must be in the {} git branch'.format(branch))