exceptions. Fix the script that analyzes our try:-except: block so it
recognizes that "except Exception, e:" is equivalent to "except:".
git-svn-id: http://scons.tigris.org/svn/scons/trunk@3552
fdb21ef1-2011-0410-befe-
b5e4ea1792b1
sys.stderr.write("\n")
try:
raise SCons.Errors.BuildError(t, errstr)
+ except KeyboardInterrupt:
+ raise
except:
self.exception_set()
self.do_failed()
tryexc_pat = re.compile(
r'^(?P<try_or_except>(?P<indent> *)(try|except)( [^\n]*)?:.*)',re.MULTILINE)
keyboardint_pat = re.compile(r' *except +([^,],)*KeyboardInterrupt([ ,][^\n]*)?:[^\n]*')
-exceptall_pat = re.compile(r' *except *:[^\n]*')
+exceptall_pat = re.compile(r' *except(?: *| +Exception *, *[^: ]+):[^\n]*')
uncaughtKeyboardInterrupt = 0
for f in files: