Skip to content

Commit

Permalink
content is always str
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian-O committed Sep 12, 2023
1 parent c63019c commit 047ad11
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions buildozer/targets/android.py
Original file line number Diff line number Diff line change
Expand Up @@ -1376,11 +1376,7 @@ def _update_libraries_references(self, dist_dir):

# recreate the project.properties
with io.open(project_fn, 'w', encoding='utf-8') as fd:

try:
fd.writelines((line.decode('utf-8') for line in content))
except UnicodeError:
fd.writelines(content)
fd.writelines(content)
if content and not content[-1].endswith(u'\n'):
fd.write(u'\n')
for index, ref in enumerate(references):
Expand Down

0 comments on commit 047ad11

Please sign in to comment.