Portable Python script across Python version
authorSerge Guelton <sguelton@quarkslab.com>
Mon, 3 Dec 2018 20:12:34 +0000 (20:12 +0000)
committerSerge Guelton <sguelton@quarkslab.com>
Mon, 3 Dec 2018 20:12:34 +0000 (20:12 +0000)
commitf606a5ae6258e9e493829ea9f1cafcf82186dad7
tree64c3147282a24bfaacf670fde44407db09187a2d
parent7bf2fed16773b549f9abf6cdaa4b42f2f2644ed5
Portable Python script across Python version

Python2 supports both backticks and `repr` to access the __repr__ slot. Python3 only supports `repr`.

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

llvm-svn: 348182
clang/tools/scan-view/share/ScanView.py