diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2019-11-18 00:37:39 -0500 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2019-11-18 13:37:39 +0800 |
commit | 26f1a920acea2da4ca23cf19cb3635be86c650c9 (patch) | |
tree | e7ee9decd7a99955f897c39a091e5735a1e6d1ce /src/OpenSSL/crypto.py | |
parent | 1257600e1603ed57455d92758eb1da857cd61725 (diff) | |
download | pyopenssl-git-26f1a920acea2da4ca23cf19cb3635be86c650c9.tar.gz |
Make the code slightly resillient to python4 (#880)
Diffstat (limited to 'src/OpenSSL/crypto.py')
-rw-r--r-- | src/OpenSSL/crypto.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/OpenSSL/crypto.py b/src/OpenSSL/crypto.py index 5a734cc..b51e12f 100644 --- a/src/OpenSSL/crypto.py +++ b/src/OpenSSL/crypto.py @@ -7,7 +7,7 @@ from operator import __eq__, __ne__, __lt__, __le__, __gt__, __ge__ from six import ( integer_types as _integer_types, text_type as _text_type, - PY3 as _PY3) + PY2 as _PY2) from cryptography import x509 from cryptography.hazmat.primitives.asymmetric import dsa, rsa @@ -377,7 +377,7 @@ class _EllipticCurve(object): """ _curves = None - if _PY3: + if not _PY2: # This only necessary on Python 3. Morever, it is broken on Python 2. def __ne__(self, other): """ |