Portable Python script across Python version
authorSerge Guelton <sguelton@quarkslab.com>
Mon, 3 Dec 2018 12:11:21 +0000 (12:11 +0000)
committerSerge Guelton <sguelton@quarkslab.com>
Mon, 3 Dec 2018 12:11:21 +0000 (12:11 +0000)
commit3de410848c245d0b66697062234f2d6980583092
tree7ced0919c668feb8e5d0de4a7dbc5ceb55a2351f
parentdbc99416b33d47d511645e52c9834bf383e84ff8
Portable Python script across Python version

Python2 supports the two following equivalent construct

raise ExceptionType, exception_value
and
raise ExceptionType(exception_value)

Only the later is supported by Python3.

Differential Revision: https://reviews.llvm.org/D55195

llvm-svn: 348126
clang/tools/scan-view/share/ScanView.py
clang/utils/ABITest/ABITestGen.py
clang/utils/ABITest/Enumeration.py
clang/utils/ABITest/TypeGen.py
clang/utils/analyzer/SATestBuild.py
clang/utils/token-delta.py