diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-01-30 11:59:55 -0800 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-01-30 11:59:55 -0800 |
commit | b3564a0bf0b93d71adad8d8fef7799bab0e0b67b (patch) | |
tree | 3b13e9b92f5688ecacf86e24426340c03fefb64a | |
parent | 87899d4fd55881a4dbec1ee32b79a5bd315ec33f (diff) | |
download | cryptography-b3564a0bf0b93d71adad8d8fef7799bab0e0b67b.tar.gz cryptography-b3564a0bf0b93d71adad8d8fef7799bab0e0b67b.tar.bz2 cryptography-b3564a0bf0b93d71adad8d8fef7799bab0e0b67b.zip |
Only make teh default once
-rw-r--r-- | cryptography/hazmat/backends/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cryptography/hazmat/backends/__init__.py b/cryptography/hazmat/backends/__init__.py index b4ef210d..e4fd94ed 100644 --- a/cryptography/hazmat/backends/__init__.py +++ b/cryptography/hazmat/backends/__init__.py @@ -24,5 +24,6 @@ if CommonCryptoBinding.is_available(): _ALL_BACKENDS.append(commoncrypto.backend) +_default_backend = PrioritizedMultiBackend(_ALL_BACKENDS) def default_backend(): - return PrioritizedMultiBackend(_ALL_BACKENDS) + return _default_backend |