From c75af179e94a1651104cedb749f580137d567714 Mon Sep 17 00:00:00 2001 From: Alexander Koshevoy <Alexander.Koshevoy@jetbrains.com> Date: Tue, 19 Mar 2019 17:27:15 +0300 Subject: [PATCH] PY-33984 Restore the workaround for "ImportError: cannot import name 'TCyBinaryProtocol'" problem --- python/helpers/third_party/thriftpy/_shaded_thriftpy/_compat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/helpers/third_party/thriftpy/_shaded_thriftpy/_compat.py b/python/helpers/third_party/thriftpy/_shaded_thriftpy/_compat.py index 5cc6509da60f..fb5189a9738e 100644 --- a/python/helpers/third_party/thriftpy/_shaded_thriftpy/_compat.py +++ b/python/helpers/third_party/thriftpy/_shaded_thriftpy/_compat.py @@ -17,7 +17,7 @@ PY35 = sys.version_info >= (3, 5) PYPY = "__pypy__" in sys.modules UNIX = platform.system() in ("Linux", "Darwin") -CYTHON = UNIX and not PYPY # Cython always disabled in pypy and windows +CYTHON = False # only Python 2.7.9 and Python 3.4 or above have true ssl context MODERN_SSL = sys.version_info >= (2, 7, 9) -- GitLab