]> granicus.if.org Git - python/commitdiff
Issue #20990: Correction for 619331c67638.
authorRichard Oudkerk <shibturn@gmail.com>
Sun, 23 Mar 2014 18:44:11 +0000 (18:44 +0000)
committerRichard Oudkerk <shibturn@gmail.com>
Sun, 23 Mar 2014 18:44:11 +0000 (18:44 +0000)
Lib/multiprocessing/spawn.py

index 8dc48ddd77de3d0a91667cc1a293c9b8206e954d..336e47990f83ea155f3d4796a5246a2438a30f69 100644 (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())