diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-03-14 12:43:52 -0400 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-03-14 12:43:52 -0400 |
commit | 1c962429404e233e06cb6775f965498ce8b6a5d9 (patch) | |
tree | e1c65d82d75ba87e6279b43e4429310bddb3a921 | |
parent | 26e5d3fb3e3bd10e97a473ba41f6e0bfc03d7462 (diff) | |
download | cryptography-1c962429404e233e06cb6775f965498ce8b6a5d9.tar.gz cryptography-1c962429404e233e06cb6775f965498ce8b6a5d9.tar.bz2 cryptography-1c962429404e233e06cb6775f965498ce8b6a5d9.zip |
make MAX_LENGTH an object()
-rw-r--r-- | cryptography/hazmat/primitives/asymmetric/padding.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cryptography/hazmat/primitives/asymmetric/padding.py b/cryptography/hazmat/primitives/asymmetric/padding.py index f1c886bf..181038fa 100644 --- a/cryptography/hazmat/primitives/asymmetric/padding.py +++ b/cryptography/hazmat/primitives/asymmetric/padding.py @@ -13,8 +13,6 @@ from __future__ import absolute_import, division, print_function -import collections - import six from cryptography import utils @@ -27,7 +25,7 @@ class PKCS1v15(object): class MGF1(object): - MAX_LENGTH = collections.namedtuple("MAX_LENGTH", [])() + MAX_LENGTH = object() def __init__(self, algorithm, salt_length): if not isinstance(algorithm, interfaces.HashAlgorithm): |