Kaydet (Commit) 99d8dd24 authored tarafından Richard Oudkerk's avatar Richard Oudkerk

Issue #20990: Correction for 619331c67638.

üst 95a8dfb9
...@@ -80,8 +80,8 @@ def get_command_line(**kwds): ...@@ -80,8 +80,8 @@ def get_command_line(**kwds):
Returns prefix of command line used for spawning a child process Returns prefix of command line used for spawning a child process
''' '''
if getattr(sys, 'frozen', False): if getattr(sys, 'frozen', False):
tmp = ' '.join('%s=%r' % item for item in kwds.items()) return ([sys.executable, '--multiprocessing-fork'] +
return [sys.executable, '--multiprocessing-fork'] + tmp ['%s=%r' % item for item in kwds.items()])
else: else:
prog = 'from multiprocessing.spawn import spawn_main; spawn_main(%s)' prog = 'from multiprocessing.spawn import spawn_main; spawn_main(%s)'
prog %= ', '.join('%s=%r' % item for item in kwds.items()) prog %= ', '.join('%s=%r' % item for item in kwds.items())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment