From d245e15e49289f113a4b9d442020311b1757725c Mon Sep 17 00:00:00 2001 From: stevenknight Date: Thu, 30 Oct 2008 13:05:32 +0000 Subject: [PATCH] Older Python portability: isinstance() only takes a single class. git-svn-id: http://scons.tigris.org/svn/scons/trunk@3749 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- src/engine/SCons/Errors.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/engine/SCons/Errors.py b/src/engine/SCons/Errors.py index e663fb48..0ac20c4f 100644 --- a/src/engine/SCons/Errors.py +++ b/src/engine/SCons/Errors.py @@ -154,7 +154,9 @@ def convert_to_BuildError(status, exc_info=None): status=status, # might be 0, OK here exitstatus=status, # might be 0, OK here exc_info=exc_info) - elif isinstance(status, (StopError, UserError)): + # TODO(1.5): + #elif isinstance(status, (StopError, UserError)): + elif isinstance(status, StopError) or isinstance(status, UserError): buildError = BuildError( errstr=str(status), status=2, -- 2.26.2