From: stevenknight Date: Sat, 13 Sep 2008 15:09:14 +0000 (+0000) Subject: Fix the "explicit stack size" warning message on earlier versions of X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5e8a02e061212db35c4fe63f9c3e564c31bd5395;p=scons.git 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 --- 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)