Get rid of more unnecessary finds

This commit is contained in:
Daniel Martí 2013-12-20 09:42:10 +01:00
parent efc8317272
commit 99b5d5e387
3 changed files with 9 additions and 7 deletions

View file

@ -307,7 +307,7 @@ def scan_apks(apps, apkcache, repodir, knownapks):
for apkfile in glob.glob(os.path.join(repodir, '*.apk')):
apkfilename = apkfile[len(repodir) + 1:]
if apkfilename.find(' ') != -1:
if ' ' in apkfilename:
print "No spaces in APK filenames!"
sys.exit(1)