summaryrefslogtreecommitdiff
path: root/tools/scan-view/share/ScanView.py
diff options
context:
space:
mode:
authorSerge Guelton <sguelton@quarkslab.com>2018-12-03 20:12:34 +0000
committerSerge Guelton <sguelton@quarkslab.com>2018-12-03 20:12:34 +0000
commitefecfbc6a83b5362737635178d5aa3d42fb279eb (patch)
tree30b450f0edcc3584222c95921bc9e4fbe5fe5fa9 /tools/scan-view/share/ScanView.py
parenta9e6c15034fb52f70e6d239a73bacf8d49c1d048 (diff)
downloadclang-efecfbc6a83b5362737635178d5aa3d42fb279eb.tar.gz
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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@348182 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/scan-view/share/ScanView.py')
-rw-r--r--tools/scan-view/share/ScanView.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/scan-view/share/ScanView.py b/tools/scan-view/share/ScanView.py
index 5f30bd283f..95ecfe262e 100644
--- a/tools/scan-view/share/ScanView.py
+++ b/tools/scan-view/share/ScanView.py
@@ -544,7 +544,7 @@ Line: %s
"""%(r.getName(),display,r.getName(),options))
reporterSelections = '\n'.join(reporterSelections)
reporterOptionsDivs = '\n'.join(reporterOptions)
- reportersArray = '[%s]'%(','.join([`r.getName()` for r in self.server.reporters]))
+ reportersArray = '[%s]'%(','.join([repr(r.getName()) for r in self.server.reporters]))
if c.files:
fieldSize = min(5, len(c.files))