diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-01-08 22:40:12 -0600 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-01-09 11:53:48 -0600 |
commit | 79a230f81ff702d590ebc36169dc11392019839f (patch) | |
tree | be1bb6c867bdbf2d60e066053a526743660c1faf | |
parent | 7fccf4c38e1bb63066232198b9aa4551e4da660f (diff) | |
download | cryptography-79a230f81ff702d590ebc36169dc11392019839f.tar.gz cryptography-79a230f81ff702d590ebc36169dc11392019839f.tar.bz2 cryptography-79a230f81ff702d590ebc36169dc11392019839f.zip |
refactor commoncrypto's is_available to check platform for now
-rw-r--r-- | cryptography/hazmat/bindings/commoncrypto/binding.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cryptography/hazmat/bindings/commoncrypto/binding.py b/cryptography/hazmat/bindings/commoncrypto/binding.py index ac5997ea..e0cd61f7 100644 --- a/cryptography/hazmat/bindings/commoncrypto/binding.py +++ b/cryptography/hazmat/bindings/commoncrypto/binding.py @@ -13,9 +13,9 @@ from __future__ import absolute_import, division, print_function -from cryptography.hazmat.bindings.utils import ( - build_ffi, binding_available -) +import sys + +from cryptography.hazmat.bindings.utils import build_ffi class Binding(object): @@ -43,4 +43,4 @@ class Binding(object): @classmethod def is_available(cls): - return binding_available(cls._ensure_ffi_initialized) + return sys.platform == "darwin" |