HomePhabricator

Portable Python script across Python version

Description

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

Details

Committed
serge_sans_pailleDec 3 2018, 4:11 AM
Differential Revision
D55195: Python2/3 compat - exceptions
Parents
rL348125: [Analyzer] Actually check for -model-path being a directory
Branches
Unknown
Tags
Unknown