diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/_cffi_src/openssl/callbacks.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/_cffi_src/openssl/callbacks.py b/src/_cffi_src/openssl/callbacks.py index 4a6b4d37..0194d2a5 100644 --- a/src/_cffi_src/openssl/callbacks.py +++ b/src/_cffi_src/openssl/callbacks.py @@ -4,8 +4,6 @@ from __future__ import absolute_import, division, print_function -import sys - import cffi INCLUDES = """ @@ -50,9 +48,8 @@ CUSTOMIZATIONS = """ static const long Cryptography_STATIC_CALLBACKS = 1; """ -if cffi.__version_info__ < (1, 4, 0) or sys.version_info >= (3, 5): +if cffi.__version_info__ < (1, 4, 0): # backwards compatibility for old cffi version on PyPy - # and Python >=3.5 (https://github.com/pyca/cryptography/issues/2970) TYPES = "static const long Cryptography_STATIC_CALLBACKS;" CUSTOMIZATIONS = """static const long Cryptography_STATIC_CALLBACKS = 0; """ |