lit: execfile() isn't present in Python 3.3
authorAlp Toker <alp@nuanti.com>
Sat, 11 Jan 2014 13:27:28 +0000 (13:27 +0000)
committerAlp Toker <alp@nuanti.com>
Sat, 11 Jan 2014 13:27:28 +0000 (13:27 +0000)
commit4c28d2024faedfc9b622b474746872c6362f139f
treeaf666ee304c62a610b6a4fd9702dcfd0180aa6ee
parent08be87bdfa834371299c590f6042671df3abfd8a
lit: execfile() isn't present in Python 3.3

On the other hand, exec(compile()) doesn't work in older Python versions in the
2.x series.

This commit introduces exec(compile()) with a fallback to plain exec(). That'll
hopefully hit the sweet spot in terms of version support.

Followup to r198766 which added enhanced source locations for lit cfg parsing.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199006 91177308-0d34-0410-b5e6-96231b3b80d8
utils/lit/lit/TestingConfig.py