Skip to content

Commit 26f1a92

Browse files
alexreaperhulk
authored andcommitted
Make the code slightly resillient to python4 (pyca#880)
1 parent 1257600 commit 26f1a92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/OpenSSL/crypto.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from six import (
88
integer_types as _integer_types,
99
text_type as _text_type,
10-
PY3 as _PY3)
10+
PY2 as _PY2)
1111

1212
from cryptography import x509
1313
from cryptography.hazmat.primitives.asymmetric import dsa, rsa
@@ -377,7 +377,7 @@ class _EllipticCurve(object):
377377
"""
378378
_curves = None
379379

380-
if _PY3:
380+
if not _PY2:
381381
# This only necessary on Python 3. Morever, it is broken on Python 2.
382382
def __ne__(self, other):
383383
"""

0 commit comments

Comments
 (0)