Issue #20990: Correction for 619331c67638.

This commit is contained in:
Richard Oudkerk 2014-03-23 18:44:11 +00:00
parent 95a8dfb924
commit 99d8dd2489

View File

@ -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())