From a45a770f88ad4444c80e52966f5022c4fb287ce5 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Fri, 31 Jan 2014 07:51:41 -0800 Subject: pep8 fixes --- cryptography/hazmat/backends/__init__.py | 2 ++ tests/hazmat/backends/test_multibackend.py | 1 - tests/hazmat/backends/test_openssl.py | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cryptography/hazmat/backends/__init__.py b/cryptography/hazmat/backends/__init__.py index e4fd94ed..0818033f 100644 --- a/cryptography/hazmat/backends/__init__.py +++ b/cryptography/hazmat/backends/__init__.py @@ -25,5 +25,7 @@ if CommonCryptoBinding.is_available(): _default_backend = PrioritizedMultiBackend(_ALL_BACKENDS) + + def default_backend(): return _default_backend diff --git a/tests/hazmat/backends/test_multibackend.py b/tests/hazmat/backends/test_multibackend.py index 127c0d3e..f77d2680 100644 --- a/tests/hazmat/backends/test_multibackend.py +++ b/tests/hazmat/backends/test_multibackend.py @@ -80,7 +80,6 @@ class DummyPBKDF2HMAC(object): raise UnsupportedAlgorithm - class TestPrioritizedMultiBackend(object): def test_ciphers(self): backend = PrioritizedMultiBackend([ diff --git a/tests/hazmat/backends/test_openssl.py b/tests/hazmat/backends/test_openssl.py index f3b0bb15..0aff41e5 100644 --- a/tests/hazmat/backends/test_openssl.py +++ b/tests/hazmat/backends/test_openssl.py @@ -15,7 +15,6 @@ import pytest from cryptography import utils from cryptography.exceptions import UnsupportedAlgorithm, InternalError -from cryptography.hazmat.backends import default_backend from cryptography.hazmat.backends.openssl.backend import backend, Backend from cryptography.hazmat.primitives import interfaces from cryptography.hazmat.primitives.ciphers import Cipher -- cgit v1.2.3