I don't think `ensure_ffi_initialized` will raise an `ImportError`, will it?


On Sat, Jan 4, 2014 at 2:06 PM, Paul Kehrer <notifications@github.com>wrote:

> In cryptography/hazmat/bindings/utils.py:
>
> > @@ -86,3 +86,14 @@ def build_ffi(module_prefix, modules, pre_include, post_include, libraries):
> >                      delattr(lib, name)
> >
> >      return ffi, lib
> > +
> > +
> > +def binding_available(name):
>
> More like this?
>
>     @classmethod
>     def is_available(cls):
>         try:
>             cls._ensure_ffi_initialized()
>             return True
>         except ImportError:
>             return False
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/pyca/cryptography/pull/404/files#r8653264>
> .
>



-- 
"I disapprove of what you say, but I will defend to the death your right to
say it." -- Evelyn Beatrice Hall (summarizing Voltaire)
"The people's good is the highest law." -- Cicero
GPG Key fingerprint: 125F 5C67 DFE9 4084