From 4d7d44e1be9f4bfe0aae9e395b231f34d431aaaf Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Tue, 15 Apr 2014 11:01:46 -0400 Subject: move an assignment for clarity --- cryptography/hazmat/primitives/asymmetric/padding.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cryptography/hazmat/primitives/asymmetric/padding.py b/cryptography/hazmat/primitives/asymmetric/padding.py index 9755dbcf..dcc6fe06 100644 --- a/cryptography/hazmat/primitives/asymmetric/padding.py +++ b/cryptography/hazmat/primitives/asymmetric/padding.py @@ -59,10 +59,10 @@ class OAEP(object): name = "EME-OAEP" def __init__(self, mgf, algorithm, label): - self._mgf = mgf if not isinstance(algorithm, interfaces.HashAlgorithm): raise TypeError("Expected instance of interfaces.HashAlgorithm.") + self._mgf = mgf self._algorithm = algorithm self._label = label -- cgit v1.2.3