diff options
| author | Serge Guelton <sguelton@quarkslab.com> | 2018-12-03 12:12:48 +0000 |
|---|---|---|
| committer | Serge Guelton <sguelton@quarkslab.com> | 2018-12-03 12:12:48 +0000 |
| commit | 09616bdb4a49d0dfe46cdec8a701ce50bf67eea7 (patch) | |
| tree | 7cb4c11cb6fcff38c2de6a9c844c5fbd01c39894 /clang/utils/analyzer/CmpRuns.py | |
| parent | 3de410848c245d0b66697062234f2d6980583092 (diff) | |
| download | bcm5719-llvm-09616bdb4a49d0dfe46cdec8a701ce50bf67eea7.tar.gz bcm5719-llvm-09616bdb4a49d0dfe46cdec8a701ce50bf67eea7.zip | |
Portable Python script across version
Have all classes derive from object: that's implicitly the default in Python3,
it needs to be done explicilty in Python2.
Differential Revision: https://reviews.llvm.org/D55121
llvm-svn: 348127
Diffstat (limited to 'clang/utils/analyzer/CmpRuns.py')
| -rwxr-xr-x | clang/utils/analyzer/CmpRuns.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/utils/analyzer/CmpRuns.py b/clang/utils/analyzer/CmpRuns.py index ab8c48b023e..43d1fe83b9d 100755 --- a/clang/utils/analyzer/CmpRuns.py +++ b/clang/utils/analyzer/CmpRuns.py @@ -38,7 +38,7 @@ import sys STATS_REGEXP = re.compile(r"Statistics: (\{.+\})", re.MULTILINE | re.DOTALL) -class Colors: +class Colors(object): """ Color for terminal highlight. """ @@ -50,14 +50,14 @@ class Colors: # path - the analysis output directory # root - the name of the root directory, which will be disregarded when # determining the source file name -class SingleRunInfo: +class SingleRunInfo(object): def __init__(self, path, root="", verboseLog=None): self.path = path self.root = root.rstrip("/\\") self.verboseLog = verboseLog -class AnalysisDiagnostic: +class AnalysisDiagnostic(object): def __init__(self, data, report, htmlReport): self._data = data self._loc = self._data['location'] @@ -117,14 +117,14 @@ class AnalysisDiagnostic: return self._data -class AnalysisReport: +class AnalysisReport(object): def __init__(self, run, files): self.run = run self.files = files self.diagnostics = [] -class AnalysisRun: +class AnalysisRun(object): def __init__(self, info): self.path = info.path self.root = info.root |

