close #452 as suggested by SpotlightKid

This commit is contained in:
pat1 2017-04-28 10:15:14 +02:00
parent 38f4b294c1
commit d323d43be9

View file

@ -819,10 +819,9 @@ class TargetAndroid(Target):
# recreate the project.properties
with io.open(project_fn, 'w', encoding='utf-8') as fd:
fd.writelines(content)
fd.writelines((line.encode('utf-8') for line in content))
for index, ref in enumerate(references):
fd.write(u'android.library.reference.{}={}\n'.format(index + 1,
ref))
fd.write(u'android.library.reference.{}={}\n'.format(index + 1, ref))
self.buildozer.debug('project.properties updated')