Skip to content

Commit 051dbb5

Browse files
ngnpopefelixxm
authored andcommitted
Refs #34986 -- Added PyPy support to django.utils.autoreload.get_child_arguments().
It seems that `sys._xoptions` is also supported on PyPy.
1 parent 6089230 commit 051dbb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django/utils/autoreload.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def get_child_arguments():
230230
exe_entrypoint = py_script.with_suffix(".exe")
231231

232232
args = [sys.executable] + ["-W%s" % o for o in sys.warnoptions]
233-
if sys.implementation.name == "cpython":
233+
if sys.implementation.name in ("cpython", "pypy"):
234234
args.extend(
235235
f"-X{key}" if value is True else f"-X{key}={value}"
236236
for key, value in sys._xoptions.items()

0 commit comments

Comments
 (0)