diff options
Diffstat (limited to 'src/zope/security/_compat.py')
-rw-r--r-- | src/zope/security/_compat.py | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/src/zope/security/_compat.py b/src/zope/security/_compat.py index 99f0d75..0d95d9f 100644 --- a/src/zope/security/_compat.py +++ b/src/zope/security/_compat.py @@ -15,32 +15,14 @@ """ import os import platform -import sys -import types py_impl = getattr(platform, 'python_implementation', lambda: None) PYPY = py_impl() == 'PyPy' PURE_PYTHON = os.environ.get('PURE_PYTHON', PYPY) -if sys.version_info[0] < 3: # pragma: no cover - CLASS_TYPES = (type, types.ClassType) - _BUILTINS = '__builtin__' - - PYTHON3 = False - PYTHON2 = True - -else: # pragma: no cover - - CLASS_TYPES = (type,) - _BUILTINS = 'builtins' - - PYTHON3 = True - PYTHON2 = False - - -class implementer_if_needed(object): +class implementer_if_needed: # Helper to make sure we don't redundantly implement interfaces # already inherited. Doing so tends to produce problems with the # C3 order. Even though here we could easily statically determine |