diff options
author | Richard Oudkerk <shibturn@gmail.com> | 2014-03-23 18:44:11 (GMT) |
---|---|---|
committer | Richard Oudkerk <shibturn@gmail.com> | 2014-03-23 18:44:11 (GMT) |
commit | 99d8dd248923c64351da3c7f8fcc3c3d5b969cb8 (patch) | |
tree | 4fda8fbd852555412931dda3ea765ba31ebda2c1 /Lib/multiprocessing/spawn.py | |
parent | 95a8dfb92469a274eff9f3f42d40bf7251f9f439 (diff) | |
download | cpython-99d8dd248923c64351da3c7f8fcc3c3d5b969cb8.zip cpython-99d8dd248923c64351da3c7f8fcc3c3d5b969cb8.tar.gz cpython-99d8dd248923c64351da3c7f8fcc3c3d5b969cb8.tar.bz2 |
Issue #20990: Correction for 619331c67638.
Diffstat (limited to 'Lib/multiprocessing/spawn.py')
-rw-r--r-- | Lib/multiprocessing/spawn.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/multiprocessing/spawn.py b/Lib/multiprocessing/spawn.py index 8dc48dd..336e479 100644 --- a/Lib/multiprocessing/spawn.py +++ b/Lib/multiprocessing/spawn.py @@ -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()) |