Commit c838b5ff authored by Oleg Dzhimiev's avatar Oleg Dzhimiev
Browse files

update for python3: string needed decoding from bytes

parent dcf775a5
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -178,8 +178,8 @@ def update_branch(names_from_conf,name_from_list,pars,git_proto):
print(bcolors.BOLDWHITE+"Step 0: Running self git pull"+bcolors.ENDC)
selfpullresult = subprocess.check_output("git pull",shell=True)

if selfpullresult.strip()!="Already up-to-date." and \
   selfpullresult.strip()!="Already up to date.":
if selfpullresult.strip().decode('utf-8')!="Already up-to-date." and \
   selfpullresult.strip().decode('utf-8')!="Already up to date.":
    print(bcolors.WARNING+"Wasn't up-to-date. Please, rerun ./setup.py"+bcolors.ENDC)
    sys.exit()
else: