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
This commit is contained in:
Jeremy Stanley 2019-01-18 23:15:06 +00:00
parent ab57086037
commit 549cc39319

View File

@ -484,7 +484,7 @@ def main(options):
owners[owner]['member'] = member['data'][0]['id'] owners[owner]['member'] = member['data'][0]['id']
break break
invite = [owners[owner].get('member', '0')] 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.append(owners[owner]['preferred'])
invite += owners[owner]['extra'] invite += owners[owner]['extra']
invites.append(invite) invites.append(invite)