From 37f15933f858fb25ea96d6376725edd7f3a88a1a Mon Sep 17 00:00:00 2001 From: Jean-Philippe Evrard Date: Thu, 10 Jan 2019 10:19:16 +0100 Subject: [PATCH] Files doesn't need to be byte encoded Writing files as unicode strings should work just as fine. Change-Id: I6094e755261735639765e0d5df9a162bab9f1466 --- openstack_releases/cmds/interactive_release.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openstack_releases/cmds/interactive_release.py b/openstack_releases/cmds/interactive_release.py index 863bf54c78..eaae231f9e 100644 --- a/openstack_releases/cmds/interactive_release.py +++ b/openstack_releases/cmds/interactive_release.py @@ -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)