py3 compat

This commit is contained in:
Kovid Goyal 2020-09-02 10:51:52 +05:30
parent 9cbb81edf5
commit 27f483dce4
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -74,7 +74,7 @@ def build_cache_dir():
def require_git_master(branch='master'): 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)) raise SystemExit('You must be in the {} git branch'.format(branch))