diff options
Diffstat (limited to 'M2Crypto/SMIME.py')
-rw-r--r-- | M2Crypto/SMIME.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/M2Crypto/SMIME.py b/M2Crypto/SMIME.py index 7c78d19..1b7564a 100644 --- a/M2Crypto/SMIME.py +++ b/M2Crypto/SMIME.py @@ -5,8 +5,7 @@ from __future__ import absolute_import Copyright (c) 1999-2003 Ng Pheng Siong. All rights reserved.""" from M2Crypto import BIO, EVP, Err, X509, m2, util -if util.py27plus: - from typing import AnyStr, Callable, Optional # noqa +from typing import AnyStr, Callable, Optional # noqa PKCS7_TEXT = m2.PKCS7_TEXT # type: int PKCS7_NOCERTS = m2.PKCS7_NOCERTS # type: int @@ -27,6 +26,7 @@ PKCS7_DATA = m2.PKCS7_DATA # type: int class PKCS7_Error(Exception): pass + m2.pkcs7_init(PKCS7_Error) |