def has_defaultcacertsloaded(): import ssl from mercurial import sslutil, ui as uimod ui = uimod.ui.load() cafile = sslutil._defaultcacerts(ui) ctx = ssl.create_default_context() if cafile: ctx.load_verify_locations(cafile=cafile) else: ctx.load_default_certs() return len(ctx.get_ca_certs()) > 0
def has_defaultcacerts(): from mercurial import sslutil, ui as uimod ui = uimod.ui.load() return sslutil._defaultcacerts(ui) or sslutil._canloaddefaultcerts
def has_defaultcacerts(): from mercurial import sslutil return sslutil._defaultcacerts() != '!'
def has_defaultcacerts(): from mercurial import sslutil return sslutil._defaultcacerts() != '!'
def has_defaultcacerts(): from mercurial import sslutil return sslutil._defaultcacerts() or sslutil._canloaddefaultcerts