1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-10-04 02:00: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:
Hans-Christoph Steiner 2018-06-22 10:10:21 +02:00
parent d28dd3f64d
commit c3b361c91b

View File

@ -51,8 +51,6 @@ from pyasn1.codec.der import decoder, encoder
from pyasn1_modules import rfc2315 from pyasn1_modules import rfc2315
from pyasn1.error import PyAsn1Error from pyasn1.error import PyAsn1Error
from distutils.util import strtobool
import fdroidserver.metadata import fdroidserver.metadata
from fdroidserver import _ from fdroidserver import _
from fdroidserver.exception import FDroidException, VCSException, NoSubmodulesException,\ from fdroidserver.exception import FDroidException, VCSException, NoSubmodulesException,\
@ -2031,8 +2029,8 @@ def is_apk_and_debuggable_androguard(apkfile):
apkobject = _get_androguard_APK(apkfile) apkobject = _get_androguard_APK(apkfile)
if apkobject.is_valid_APK(): if apkobject.is_valid_APK():
debuggable = apkobject.get_element("application", "debuggable") debuggable = apkobject.get_element("application", "debuggable")
if debuggable is not None: if debuggable == 'true':
return bool(strtobool(debuggable)) return True
return False return False