mirror of
https://github.com/python/cpython.git
synced 2025-11-25 12:44:13 +00:00
Move private function _args_from_interpreter_flags() to subprocess.py, so
that it can be imported when threads are disabled. (followup to issue #12098)
This commit is contained in:
parent
77c84f2def
commit
ebdcd859e5
4 changed files with 38 additions and 32 deletions
|
|
@ -1596,8 +1596,7 @@ def strip_python_stderr(stderr):
|
|||
def args_from_interpreter_flags():
|
||||
"""Return a list of command-line arguments reproducing the current
|
||||
settings in sys.flags and sys.warnoptions."""
|
||||
from multiprocessing.util import _args_from_interpreter_flags
|
||||
return _args_from_interpreter_flags()
|
||||
return subprocess._args_from_interpreter_flags()
|
||||
|
||||
#============================================================
|
||||
# Support for assertions about logging.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue