merge_jars.py: Fix for python 3 compatibility
* ZipFile.read returns byte and not string * dict.iteritems() was removed in Python 3 Change-Id: Id3c0edf7f554150c948cbfdba0b1b24a5d3ad51e
This commit is contained in:
parent
ffb6e8ca6e
commit
945ea9fc41
@ -39,12 +39,12 @@ try:
|
||||
continue
|
||||
elif n.startswith(SERVICES):
|
||||
# Concatenate all provider configuration files.
|
||||
services[n] += inzip.read(n)
|
||||
services[n] += inzip.read(n).decode("UTF-8")
|
||||
continue
|
||||
outzip.writestr(info, inzip.read(n))
|
||||
seen.add(n)
|
||||
|
||||
for n, v in services.iteritems():
|
||||
for n, v in list(services.items()):
|
||||
outzip.writestr(n, v)
|
||||
except Exception as err:
|
||||
exit('Failed to merge jars: %s' % err)
|
||||
|
Loading…
Reference in New Issue
Block a user