Merge pull request #321 from kived/py3-str-decode

fix py3 str has no decode issue
This commit is contained in:
Ryan Pessa 2016-04-20 22:49:56 -05:00
commit fed06506a3

View file

@ -744,8 +744,10 @@ class TargetAndroid(Target):
# XXX found how the apk name is really built from the title
bl = u'\'" ,'
apktitle = ''.join([x for x in config.get('app', 'title').decode('utf-8')
if x not in bl])
apptitle = config.get('app', 'title')
if hasattr(apptitle, 'decode'):
apptitle = apptitle.decode('utf-8')
apktitle = ''.join([x for x in apptitle if x not in bl])
apk = u'{title}-{version}-{mode}.apk'.format(
title=apktitle,
version=version,