HomePhabricator

Portable Python script across Python version

Authored by Serge Guelton <sguelton@quarkslab.com> on Dec 3 2018, 4:11 AM.

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

llvm-svn: 348126

Event Timeline

Serge Guelton <sguelton@quarkslab.com> committed rG3de410848c24: Portable Python script across Python version (authored by Serge Guelton <sguelton@quarkslab.com>).Dec 3 2018, 4:11 AM