From f6a960f7e2c3a7ae575a8a865b509ad758a9abbe Mon Sep 17 00:00:00 2001 From: Steven Knight Date: Sat, 13 Sep 2008 15:09:14 +0000 Subject: Fix the "explicit stack size" warning message on earlier versions of Python that don't support it. --- 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 86886e0..594045c 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) -- cgit v0.12