The parallel message should be returned from that function, not printed
authorstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Fri, 22 Aug 2008 03:57:57 +0000 (03:57 +0000)
committerstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Fri, 22 Aug 2008 03:57:57 +0000 (03:57 +0000)
directly.  This allows it to be disabled by the right --warn= option.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3293 fdb21ef1-2011-0410-befe-b5e4ea1792b1

src/engine/SCons/Script/Main.py

index 6c15398f94137661fda1d0f87df693b9ce0f3fe8..e24763493757e5b16c83e09c89c657eeb62db9e4 100644 (file)
@@ -78,7 +78,7 @@ def fetch_win32_parallel_msg():
     # globl in nest scopes and UnboundLocalErrors and the like in some
     # versions (2.1) of Python.
     import SCons.Platform.win32
-    print SCons.Platform.win32.parallel_msg
+    return SCons.Platform.win32.parallel_msg
 
 #
 
@@ -110,8 +110,7 @@ class Progressor:
         elif SCons.Util.is_List(obj):
             self.func = self.spinner
         elif string.find(obj, self.target_string) != -1:
-            self.func = self.replace_string
-        else:
+            self.func = self.replace_string else:
             self.func = self.string
 
     def write(self, s):