diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2013-10-03 09:53:35 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2013-10-03 09:53:35 -0700 |
commit | 548467c8d90a62d7e7647ae7b8d04cc6291d811e (patch) | |
tree | 3a439008dc1a4493e6c2f249de4f56d5ade61310 | |
parent | ff61cd36005297b4cf01302116bb6cda65c67a96 (diff) | |
download | cryptography-548467c8d90a62d7e7647ae7b8d04cc6291d811e.tar.gz cryptography-548467c8d90a62d7e7647ae7b8d04cc6291d811e.tar.bz2 cryptography-548467c8d90a62d7e7647ae7b8d04cc6291d811e.zip |
Make default_api private
-rw-r--r-- | cryptography/bindings/__init__.py | 2 | ||||
-rw-r--r-- | cryptography/primitives/block/base.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/cryptography/bindings/__init__.py b/cryptography/bindings/__init__.py index b4dc6bf1..8b165009 100644 --- a/cryptography/bindings/__init__.py +++ b/cryptography/bindings/__init__.py @@ -14,4 +14,4 @@ from cryptography.bindings.openssl import api -default_api = api +_default_api = api diff --git a/cryptography/primitives/block/base.py b/cryptography/primitives/block/base.py index 833ebe9b..197807ea 100644 --- a/cryptography/primitives/block/base.py +++ b/cryptography/primitives/block/base.py @@ -15,7 +15,7 @@ from __future__ import absolute_import, division, print_function from enum import Enum -from cryptography.bindings import default_api +from cryptography.bindings import _default_api class _Operation(Enum): @@ -24,7 +24,7 @@ class _Operation(Enum): class BlockCipher(object): - def __init__(self, cipher, mode, api=default_api): + def __init__(self, cipher, mode, api=_default_api): super(BlockCipher, self).__init__() self.cipher = cipher self.mode = mode |