aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2013-11-15 15:59:06 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2013-11-15 15:59:06 -0800
commit1bbb7ce8b5e5c6379227dcb79c51bddbda6e4d23 (patch)
tree31ce6b18dc9bb59ab520157f2720e59f6bdc4f53
parent4a6f5dcddef1b9a3afbe8cc47b7483e3589781fe (diff)
downloadcryptography-1bbb7ce8b5e5c6379227dcb79c51bddbda6e4d23.tar.gz
cryptography-1bbb7ce8b5e5c6379227dcb79c51bddbda6e4d23.tar.bz2
cryptography-1bbb7ce8b5e5c6379227dcb79c51bddbda6e4d23.zip
Fixed flake8 issues
-rw-r--r--cryptography/hazmat/primitives/padding.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cryptography/hazmat/primitives/padding.py b/cryptography/hazmat/primitives/padding.py
index ec575195..b07f5014 100644
--- a/cryptography/hazmat/primitives/padding.py
+++ b/cryptography/hazmat/primitives/padding.py
@@ -14,7 +14,6 @@
import cffi
import six
-from six.moves import xrange
from cryptography.hazmat.primitives import interfaces
@@ -55,7 +54,6 @@ bool Cryptography_check_padding(uint8_t *data, unsigned int block_len) {
""")
-
class PKCS7(object):
def __init__(self, block_size):
super(PKCS7, self).__init__()
@@ -146,7 +144,9 @@ class _PKCS7UnpaddingContext(object):
pad_size = six.indexbytes(self._buffer, -1)
- valid = _lib.Cryptography_check_padding(self._buffer, self.block_size // 8)
+ valid = _lib.Cryptography_check_padding(
+ self._buffer, self.block_size // 8
+ )
if not valid or not (0 < pad_size <= self.block_size // 8):
raise ValueError("Invalid padding bytes")