I have the following code, which gave me correct results python 2.7, but as soon as I have ported to python 3, the code doesnt work as expected. I can see correct results in the variable submodule_commit, but they are like b'xxxxxxx\nyyyyyyy' and the split doesnt work anymore. I dont understand, wht is going wrong here. My expectations is a list with submodules.
command = "git submodule status | awk '{print $1}'" submodule_commit = subprocess.check_output(command, shell=True) submodule_commit = submodule_commit.split('\n')