py3 compat

This commit is contained in:
Kovid Goyal 2020-09-19 10:28:43 +05:30
parent 44790fb7a2
commit f2384437ca
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -283,7 +283,7 @@ class UploadInstallers(Command): # {{{
with open(os.path.join(tdir, 'fmap'), 'wb') as fo: with open(os.path.join(tdir, 'fmap'), 'wb') as fo:
for f, desc in iteritems(files): for f, desc in iteritems(files):
fo.write('%s: %s\n' % (f, desc)) fo.write(('%s: %s\n' % (f, desc)).encode('utf-8'))
while True: while True:
try: try: