Fix for python3

This commit is contained in:
Oleg Korshul
2020-03-25 09:42:47 +03:00
parent 34dfd8517c
commit af94e2e5b8

View File

@ -17,7 +17,7 @@ def get_branch_name(directory):
try:
stdout, stderr = popen.communicate()
popen.wait()
current_branch = stdout.strip()
current_branch = stdout.strip().decode("utf-8")
finally:
popen.stdout.close()
popen.stderr.close()