def has_wincrypto():
    "\n    Does this environment have wincrypto?\n    Should return False even when Mercurial's Demand Import allowed import of\n    _win_crypto, so accesses an attribute of the module.\n    "
    with ExceptionRaisedContext() as exc:
        _win_crypto.__name__
    return (not bool(exc))
Does this environment have wincrypto?
Should return False even when Mercurial's Demand Import allowed import of
_win_crypto, so accesses an attribute of the module.
def has_wincrypto():
    "\n    Does this environment have wincrypto?\n    Should return False even when Mercurial's Demand Import allowed import of\n    _win_crypto, so accesses an attribute of the module.\n    "
    with ExceptionRaisedContext() as exc:
        _win_crypto.__name__
    return (not bool(exc))