mirror of
https://github.com/python/cpython.git
synced 2024-11-27 11:55:13 +08:00
Issue #20990: Correction for 619331c67638.
This commit is contained in:
parent
95a8dfb924
commit
99d8dd2489
@ -80,8 +80,8 @@ def get_command_line(**kwds):
|
||||
Returns prefix of command line used for spawning a child process
|
||||
'''
|
||||
if getattr(sys, 'frozen', False):
|
||||
tmp = ' '.join('%s=%r' % item for item in kwds.items())
|
||||
return [sys.executable, '--multiprocessing-fork'] + tmp
|
||||
return ([sys.executable, '--multiprocessing-fork'] +
|
||||
['%s=%r' % item for item in kwds.items()])
|
||||
else:
|
||||
prog = 'from multiprocessing.spawn import spawn_main; spawn_main(%s)'
|
||||
prog %= ', '.join('%s=%r' % item for item in kwds.items())
|
||||
|
Loading…
Reference in New Issue
Block a user