Commit b477174c authored by Richard Oudkerk's avatar Richard Oudkerk

Issue #20990: Correction for 619331c67638.

parent 4e7f1021
......@@ -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())
......
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