Merge comparisons with 'in'

This commit is contained in:
Jochen Sprickerhof 2022-09-05 17:14:51 +02:00
parent f4739ef3c0
commit cf0100cf11
No known key found for this signature in database
GPG key ID: 5BFFDCC258E69433
6 changed files with 19 additions and 17 deletions

View file

@ -2616,7 +2616,7 @@ def get_apk_id_androguard(apkfile):
if axml.getName() == 'manifest':
break
elif _type == END_TAG or _type == TEXT or _type == END_DOCUMENT:
elif _type in (END_TAG, TEXT, END_DOCUMENT):
raise RuntimeError('{path}: <manifest> must be the first element in AndroidManifest.xml'
.format(path=apkfile))