components/python/python26/Python26-04-distutils-log.patch
changeset 115 c360825c3a3f
parent 114 6cc95ec7b1bb
child 116 ae6a90899b42
equal deleted inserted replaced
114:6cc95ec7b1bb 115:c360825c3a3f
     1 diff --git Python-2.6.4/Lib/distutils/spawn.py Python-2.6.4/Lib/distutils/spawn.py
       
     2 --- Python-2.6.4/Lib/distutils/spawn.py
       
     3 +++ Python-2.6.4/Lib/distutils/spawn.py
       
     4 @@ -73,7 +73,7 @@
       
     5      if search_path:
       
     6          # either we find one or it stays the same
       
     7          executable = find_executable(executable) or executable
       
     8 -    log.info(string.join([executable] + cmd[1:], ' '))
       
     9 +    log.info("%s", string.join([executable] + cmd[1:], ' '))
       
    10      if not dry_run:
       
    11          # spawn for NT requires a full path to the .exe
       
    12          try:
       
    13 @@ -98,7 +98,7 @@
       
    14      if search_path:
       
    15          # either we find one or it stays the same
       
    16          executable = find_executable(executable) or executable
       
    17 -    log.info(string.join([executable] + cmd[1:], ' '))
       
    18 +    log.info("%s", string.join([executable] + cmd[1:], ' '))
       
    19      if not dry_run:
       
    20          # spawnv for OS/2 EMX requires a full path to the .exe
       
    21          try:
       
    22 @@ -119,7 +119,7 @@
       
    23                    verbose=0,
       
    24                    dry_run=0):
       
    25  
       
    26 -    log.info(string.join(cmd, ' '))
       
    27 +    log.info("%s", string.join(cmd, ' '))
       
    28      if dry_run:
       
    29          return
       
    30      exec_fn = search_path and os.execvp or os.execv