mirror of
https://github.com/django/django.git
synced 2025-03-13 19:00:45 +00:00
Refs #34986 -- Added PyPy support to django.utils.autoreload.get_child_arguments().
It seems that `sys._xoptions` is also supported on PyPy.
This commit is contained in:
parent
6089230d3e
commit
051dbb5388
@ -230,7 +230,7 @@ def get_child_arguments():
|
|||||||
exe_entrypoint = py_script.with_suffix(".exe")
|
exe_entrypoint = py_script.with_suffix(".exe")
|
||||||
|
|
||||||
args = [sys.executable] + ["-W%s" % o for o in sys.warnoptions]
|
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(
|
args.extend(
|
||||||
f"-X{key}" if value is True else f"-X{key}={value}"
|
f"-X{key}" if value is True else f"-X{key}={value}"
|
||||||
for key, value in sys._xoptions.items()
|
for key, value in sys._xoptions.items()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user