diff options
Diffstat (limited to 'django/utils')
| -rw-r--r-- | django/utils/version.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/django/utils/version.py b/django/utils/version.py index 1e9c720299..ecd41dac89 100644 --- a/django/utils/version.py +++ b/django/utils/version.py @@ -6,6 +6,9 @@ import sys from django.utils.regex_helper import _lazy_re_compile +# Private, stable API for detecting the Python implementation. +PYPY = sys.implementation.name == "pypy" + # Private, stable API for detecting the Python version. PYXY means "Python X.Y # or later". So that third-party apps can use these values, each constant # should remain as long as the oldest supported Django version supports that |
