Make obs-buildlogs.py Python3 compatible

This commit is contained in:
William S Fulton 2019-04-08 19:08:59 +01:00
commit ad60edef57

View file

@ -15,7 +15,7 @@ def download():
for line in repos.stdout:
command = ['osc', 'buildlog', '--last'] + line.split()
filename = "-".join(line.split()) + ".log"
print "Downloading logs using: {}".format(" ".join(command))
print("Downloading logs using: {}".format(" ".join(command)))
buildlog = subprocess.Popen(command, stdout=subprocess.PIPE)
print("Writing log to {}".format(filename))