Replace finds with pythonic terms

This commit is contained in:
Daniel Martí 2013-12-20 09:34:03 +01:00
parent 8f3a2d4355
commit efc8317272
3 changed files with 8 additions and 10 deletions

View file

@ -1361,7 +1361,7 @@ def isApkDebuggable(apkfile, config):
print "ERROR: Failed to get apk manifest information"
sys.exit(1)
for line in output.splitlines():
if line.find('android:debuggable') != -1 and not line.endswith('0x0'):
if 'android:debuggable' in line and not line.endswith('0x0'):
return True
return False