From 549cc393191b671707631485d89f81d16716c9c9 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Fri, 18 Jan 2019 23:15:06 +0000 Subject: [PATCH] Don't encode contributor names in invites Now that we don't support Python 2.7 with this tooling, we can drop the explicit encoding in invitee names. Without this change, they're recorded as explicit byte sequences instead of normal UTF-8 strings. Change-Id: I9e0220dbdb241ab6bd464fd5cdfcaf5f3e2a6399 --- openstack_election/owners.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openstack_election/owners.py b/openstack_election/owners.py index ad646b97..f4630279 100644 --- a/openstack_election/owners.py +++ b/openstack_election/owners.py @@ -484,7 +484,7 @@ def main(options): owners[owner]['member'] = member['data'][0]['id'] break invite = [owners[owner].get('member', '0')] - invite.append(owners[owner]['name'].encode('utf-8')) + invite.append(owners[owner]['name']) invite.append(owners[owner]['preferred']) invite += owners[owner]['extra'] invites.append(invite)