diff options
author | Daniel Dunbar <daniel@zuster.org> | 2013-08-07 03:16:19 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2013-08-07 03:16:19 +0000 |
commit | 2e60c882bf989207ad3b33685b2353f62ff3ecd4 (patch) | |
tree | 2056e3df69fa97c7a0dcb0ef65e1f686eee80304 /utils/lit/lit/TestingConfig.py | |
parent | 26e0af54c2eb3efe468715edada97442e469bb19 (diff) | |
download | external_llvm-2e60c882bf989207ad3b33685b2353f62ff3ecd4.zip external_llvm-2e60c882bf989207ad3b33685b2353f62ff3ecd4.tar.gz external_llvm-2e60c882bf989207ad3b33685b2353f62ff3ecd4.tar.bz2 |
[lit] Remove uses of deprecated except syntax.
- Since we only have a few of these, use the cumbersome method of getting the
exception object from 'sys' to retain the current pre-2.6 compatibility.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187854 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/lit/lit/TestingConfig.py')
-rw-r--r-- | utils/lit/lit/TestingConfig.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/lit/lit/TestingConfig.py b/utils/lit/lit/TestingConfig.py index 16e698b..25168d7 100644 --- a/utils/lit/lit/TestingConfig.py +++ b/utils/lit/lit/TestingConfig.py @@ -62,10 +62,11 @@ class TestingConfig: exec f in cfg_globals if litConfig.debug: litConfig.note('... loaded config %r' % path) - except SystemExit,status: + except SystemExit: + e = sys.exc_info()[1] # We allow normal system exit inside a config file to just # return control without error. - if status.args: + if e.args: raise f.close() else: |