summaryrefslogtreecommitdiff
path: root/M2Crypto/X509.py
diff options
context:
space:
mode:
Diffstat (limited to 'M2Crypto/X509.py')
-rw-r--r--M2Crypto/X509.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/M2Crypto/X509.py b/M2Crypto/X509.py
index c4848bb..6b0e963 100644
--- a/M2Crypto/X509.py
+++ b/M2Crypto/X509.py
@@ -12,9 +12,8 @@ Author: Heikki Toivonen
import binascii
import logging
-from M2Crypto import ASN1, BIO, EVP, m2, py27plus, six # noqa
-if py27plus:
- from typing import AnyStr, Optional # noqa
+from M2Crypto import ASN1, BIO, EVP, m2, six # noqa
+from typing import AnyStr, List, Optional # noqa
FORMAT_DER = 0
FORMAT_PEM = 1
@@ -25,6 +24,7 @@ log = logging.getLogger(__name__)
class X509Error(ValueError):
pass
+
m2.x509_init(X509Error)
V_OK = m2.X509_V_OK # type: int