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:
Antoine Pitrou 2012-05-18 18:33:07 +02:00
parent 77c84f2def
commit ebdcd859e5
4 changed files with 38 additions and 32 deletions

View file

@ -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.