summaryrefslogtreecommitdiff
path: root/django/utils/autoreload.py
diff options
context:
space:
mode:
authorNick Pope <nick@nickpope.me.uk>2023-11-21 16:04:56 +0000
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-11-28 06:19:38 +0100
commit051dbb53884eb202131c27dfdeac7c3ddd7b1072 (patch)
tree744d940d49b000142cbead1ca53589baa98d7821 /django/utils/autoreload.py
parent6089230d3ec580f2f44e85f23962c14905fefcfd (diff)
Refs #34986 -- Added PyPy support to django.utils.autoreload.get_child_arguments().
It seems that `sys._xoptions` is also supported on PyPy.
Diffstat (limited to 'django/utils/autoreload.py')
-rw-r--r--django/utils/autoreload.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/autoreload.py b/django/utils/autoreload.py
index e570f89300..31a6dfa99d 100644
--- a/django/utils/autoreload.py
+++ b/django/utils/autoreload.py
@@ -230,7 +230,7 @@ def get_child_arguments():
exe_entrypoint = py_script.with_suffix(".exe")
args = [sys.executable] + ["-W%s" % o for o in sys.warnoptions]
- if sys.implementation.name == "cpython":
+ if sys.implementation.name in ("cpython", "pypy"):
args.extend(
f"-X{key}" if value is True else f"-X{key}={value}"
for key, value in sys._xoptions.items()