mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-03 17:50:11 +02:00
remove 'from distutils.util import strtobool' dependency
Most of distutils is being removed from the Python standard library, and this is totally not needed here.
This commit is contained in:
parent
d28dd3f64d
commit
c3b361c91b
@ -51,8 +51,6 @@ from pyasn1.codec.der import decoder, encoder
|
||||
from pyasn1_modules import rfc2315
|
||||
from pyasn1.error import PyAsn1Error
|
||||
|
||||
from distutils.util import strtobool
|
||||
|
||||
import fdroidserver.metadata
|
||||
from fdroidserver import _
|
||||
from fdroidserver.exception import FDroidException, VCSException, NoSubmodulesException,\
|
||||
@ -2031,8 +2029,8 @@ def is_apk_and_debuggable_androguard(apkfile):
|
||||
apkobject = _get_androguard_APK(apkfile)
|
||||
if apkobject.is_valid_APK():
|
||||
debuggable = apkobject.get_element("application", "debuggable")
|
||||
if debuggable is not None:
|
||||
return bool(strtobool(debuggable))
|
||||
if debuggable == 'true':
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user