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:
Hans-Christoph Steiner 2018-06-22 10:10:21 +02:00
parent 04bf9e3906
commit 95969b2891

View file

@ -50,8 +50,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,\
@ -2029,8 +2027,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