Author: serge_sans_paille
Date: Mon Dec  3 12:12:34 2018
New Revision: 348182

URL: http://llvm.org/viewvc/llvm-project?rev=348182&view=rev
Log:
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

Modified:
    cfe/trunk/tools/scan-view/share/ScanView.py

Modified: cfe/trunk/tools/scan-view/share/ScanView.py
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/scan-view/share/ScanView.py?rev=348182&r1=348181&r2=348182&view=diff
==============================================================================
--- cfe/trunk/tools/scan-view/share/ScanView.py (original)
+++ cfe/trunk/tools/scan-view/share/ScanView.py Mon Dec  3 12:12:34 2018
@@ -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))


_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to