Files doesn't need to be byte encoded

Writing files as unicode strings should work just as fine.

Change-Id: I6094e755261735639765e0d5df9a162bab9f1466
This commit is contained in:
Jean-Philippe Evrard 2019-01-10 10:19:16 +01:00
parent 7752a019f6
commit 37f15933f8

View File

@ -243,7 +243,7 @@ def maybe_create_release(release_repo_path, deliverable_info,
except KeyError:
newest_release['releases'] = [new_release]
newest_release = yamlutils.dumps(newest_release)
with open(newest_release_path, 'wb') as fh:
with open(newest_release_path, 'w') as fh:
fh.write(newest_release)