diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-03-19 12:58:19 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-03-19 12:58:19 -0700 |
commit | 62e18d7873470517c97c0c37be6bc1a81c304d8a (patch) | |
tree | c04e5d850c274e323196c3d71067f3b7fb278689 /cryptography | |
parent | 2ed93e28aed5737f7cb54807e60d9a0e7d85b4f3 (diff) | |
parent | 8443a92f9fb168b7b9bd38cd2bb4dea315f90eaf (diff) | |
download | cryptography-62e18d7873470517c97c0c37be6bc1a81c304d8a.tar.gz cryptography-62e18d7873470517c97c0c37be6bc1a81c304d8a.tar.bz2 cryptography-62e18d7873470517c97c0c37be6bc1a81c304d8a.zip |
Merge pull request #829 from reaperhulk/import-order-fixer
import order fixes for future automated checking
Diffstat (limited to 'cryptography')
-rw-r--r-- | cryptography/__init__.py | 4 | ||||
-rw-r--r-- | cryptography/fernet.py | 2 | ||||
-rw-r--r-- | cryptography/hazmat/backends/commoncrypto/backend.py | 10 | ||||
-rw-r--r-- | cryptography/hazmat/backends/multibackend.py | 2 | ||||
-rw-r--r-- | cryptography/hazmat/backends/openssl/backend.py | 15 | ||||
-rw-r--r-- | cryptography/hazmat/bindings/commoncrypto/binding.py | 2 | ||||
-rw-r--r-- | cryptography/hazmat/primitives/ciphers/base.py | 2 | ||||
-rw-r--r-- | cryptography/hazmat/primitives/kdf/pbkdf2.py | 2 |
8 files changed, 20 insertions, 19 deletions
diff --git a/cryptography/__init__.py b/cryptography/__init__.py index 599bb059..f27ba856 100644 --- a/cryptography/__init__.py +++ b/cryptography/__init__.py @@ -14,8 +14,8 @@ from __future__ import absolute_import, division, print_function from cryptography.__about__ import ( - __title__, __summary__, __uri__, __version__, __author__, __email__, - __license__, __copyright__ + __author__, __copyright__, __email__, __license__, __summary__, __title__, + __uri__, __version__ ) diff --git a/cryptography/fernet.py b/cryptography/fernet.py index 28d9c928..674ce8ae 100644 --- a/cryptography/fernet.py +++ b/cryptography/fernet.py @@ -23,7 +23,7 @@ import six from cryptography.exceptions import InvalidSignature from cryptography.hazmat.backends import default_backend -from cryptography.hazmat.primitives import padding, hashes +from cryptography.hazmat.primitives import hashes, padding from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes from cryptography.hazmat.primitives.hmac import HMAC diff --git a/cryptography/hazmat/backends/commoncrypto/backend.py b/cryptography/hazmat/backends/commoncrypto/backend.py index 53228b31..dc0534ee 100644 --- a/cryptography/hazmat/backends/commoncrypto/backend.py +++ b/cryptography/hazmat/backends/commoncrypto/backend.py @@ -17,18 +17,18 @@ from collections import namedtuple from cryptography import utils from cryptography.exceptions import ( - InvalidTag, InternalError, UnsupportedCipher, UnsupportedHash + InternalError, InvalidTag, UnsupportedCipher, UnsupportedHash ) from cryptography.hazmat.backends.interfaces import ( - HashBackend, HMACBackend, CipherBackend, PBKDF2HMACBackend + CipherBackend, HMACBackend, HashBackend, PBKDF2HMACBackend ) from cryptography.hazmat.bindings.commoncrypto.binding import Binding -from cryptography.hazmat.primitives import interfaces, constant_time +from cryptography.hazmat.primitives import constant_time, interfaces from cryptography.hazmat.primitives.ciphers.algorithms import ( - AES, Blowfish, TripleDES, ARC4, CAST5 + AES, ARC4, Blowfish, CAST5, TripleDES ) from cryptography.hazmat.primitives.ciphers.modes import ( - CBC, CTR, ECB, OFB, CFB, GCM + CBC, CFB, CTR, ECB, GCM, OFB ) diff --git a/cryptography/hazmat/backends/multibackend.py b/cryptography/hazmat/backends/multibackend.py index cca82a59..6c57b3df 100644 --- a/cryptography/hazmat/backends/multibackend.py +++ b/cryptography/hazmat/backends/multibackend.py @@ -18,7 +18,7 @@ from cryptography.exceptions import ( UnsupportedAlgorithm, UnsupportedCipher, UnsupportedHash ) from cryptography.hazmat.backends.interfaces import ( - CipherBackend, HashBackend, HMACBackend, PBKDF2HMACBackend, RSABackend + CipherBackend, HMACBackend, HashBackend, PBKDF2HMACBackend, RSABackend ) diff --git a/cryptography/hazmat/backends/openssl/backend.py b/cryptography/hazmat/backends/openssl/backend.py index 7c058f58..fa21260c 100644 --- a/cryptography/hazmat/backends/openssl/backend.py +++ b/cryptography/hazmat/backends/openssl/backend.py @@ -20,23 +20,24 @@ import six from cryptography import utils from cryptography.exceptions import ( - InvalidTag, InternalError, AlreadyFinalized, UnsupportedCipher, - UnsupportedAlgorithm, UnsupportedHash, UnsupportedPadding, InvalidSignature + AlreadyFinalized, InternalError, InvalidSignature, InvalidTag, + UnsupportedAlgorithm, UnsupportedCipher, UnsupportedHash, + UnsupportedPadding ) from cryptography.hazmat.backends.interfaces import ( - CipherBackend, HashBackend, HMACBackend, PBKDF2HMACBackend, RSABackend + CipherBackend, HMACBackend, HashBackend, PBKDF2HMACBackend, RSABackend ) from cryptography.hazmat.bindings.openssl.binding import Binding -from cryptography.hazmat.primitives import interfaces, hashes +from cryptography.hazmat.primitives import hashes, interfaces from cryptography.hazmat.primitives.asymmetric import rsa from cryptography.hazmat.primitives.asymmetric.padding import ( - PKCS1v15, PSS, MGF1 + MGF1, PKCS1v15, PSS ) from cryptography.hazmat.primitives.ciphers.algorithms import ( - AES, Blowfish, Camellia, CAST5, TripleDES, ARC4, IDEA + AES, ARC4, Blowfish, CAST5, Camellia, IDEA, TripleDES ) from cryptography.hazmat.primitives.ciphers.modes import ( - CBC, CTR, ECB, OFB, CFB, GCM, + CBC, CFB, CTR, ECB, GCM, OFB ) diff --git a/cryptography/hazmat/bindings/commoncrypto/binding.py b/cryptography/hazmat/bindings/commoncrypto/binding.py index ee809425..3673ea36 100644 --- a/cryptography/hazmat/bindings/commoncrypto/binding.py +++ b/cryptography/hazmat/bindings/commoncrypto/binding.py @@ -13,8 +13,8 @@ from __future__ import absolute_import, division, print_function -import sys import platform +import sys from cryptography.hazmat.bindings.utils import build_ffi diff --git a/cryptography/hazmat/primitives/ciphers/base.py b/cryptography/hazmat/primitives/ciphers/base.py index 1275019e..f5dd2ed5 100644 --- a/cryptography/hazmat/primitives/ciphers/base.py +++ b/cryptography/hazmat/primitives/ciphers/base.py @@ -15,7 +15,7 @@ from __future__ import absolute_import, division, print_function from cryptography import utils from cryptography.exceptions import ( - AlreadyFinalized, NotYetFinalized, AlreadyUpdated, UnsupportedInterface + AlreadyFinalized, AlreadyUpdated, NotYetFinalized, UnsupportedInterface ) from cryptography.hazmat.backends.interfaces import CipherBackend from cryptography.hazmat.primitives import interfaces diff --git a/cryptography/hazmat/primitives/kdf/pbkdf2.py b/cryptography/hazmat/primitives/kdf/pbkdf2.py index f70a7ddf..705e45d7 100644 --- a/cryptography/hazmat/primitives/kdf/pbkdf2.py +++ b/cryptography/hazmat/primitives/kdf/pbkdf2.py @@ -17,7 +17,7 @@ import six from cryptography import utils from cryptography.exceptions import ( - InvalidKey, UnsupportedHash, AlreadyFinalized, UnsupportedInterface + AlreadyFinalized, InvalidKey, UnsupportedHash, UnsupportedInterface ) from cryptography.hazmat.backends.interfaces import PBKDF2HMACBackend from cryptography.hazmat.primitives import constant_time, interfaces |