From 5e8a02e061212db35c4fe63f9c3e564c31bd5395 Mon Sep 17 00:00:00 2001 From: stevenknight Date: Sat, 13 Sep 2008 15:09:14 +0000 Subject: [PATCH] Fix the "explicit stack size" warning message on earlier versions of Python that don't support it. git-svn-id: http://scons.tigris.org/svn/scons/trunk@3401 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- src/engine/SCons/Job.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/SCons/Job.py b/src/engine/SCons/Job.py index 86886e04..594045c2 100644 --- a/src/engine/SCons/Job.py +++ b/src/engine/SCons/Job.py @@ -278,8 +278,8 @@ else: prev_size = threading.stack_size(stack_size*1024) except AttributeError, e: # Only print a warning if the stack size has been - # explicitely set. - if hasattr(SCons.Job, 'stack_size'): + # explicitly set. + if not explicit_stack_size is None: msg = "Setting stack size is unsupported by this version of Python:\n " + \ e.args[0] SCons.Warnings.warn(SCons.Warnings.StackSizeWarning, msg) -- 2.26.2