Merge pull request #303 from pohmelie/fix-verbose-python3

add python3 compatibility to verbose output for android build (#221)
This commit is contained in:
Alexander Taylor 2016-03-14 00:25:45 +00:00
commit f9cc07dfe1

View file

@ -351,7 +351,10 @@ class Buildozer(object):
show_output = kwargs.pop('show_output')
if show_output:
kwargs['logfile'] = codecs.getwriter('utf8')(stdout)
if IS_PY3:
kwargs['logfile'] = codecs.getwriter('utf8')(stdout.buffer)
else:
kwargs['logfile'] = codecs.getwriter('utf8')(stdout)
if not sensible:
self.debug('Run (expect) {0!r}'.format(command))