fix py3 str has no decode issue
This commit is contained in:
parent
442fda7a73
commit
9030a4c03f
1 changed files with 4 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue