Index: bindings/python/clang/cindex.py =================================================================== --- bindings/python/clang/cindex.py +++ bindings/python/clang/cindex.py @@ -400,7 +400,7 @@ @property def ranges(self): - class RangeIterator: + class RangeIterator(object): def __init__(self, diag): self.diag = diag @@ -416,7 +416,7 @@ @property def fixits(self): - class FixItIterator: + class FixItIterator(object): def __init__(self, diag): self.diag = diag @@ -436,7 +436,7 @@ @property def children(self): - class ChildDiagnosticsIterator: + class ChildDiagnosticsIterator(object): def __init__(self, diag): self.diag_set = conf.lib.clang_getChildDiagnostics(diag) @@ -2475,8 +2475,8 @@ # 20: CompletionChunk.Kind("VerticalSpace") } -class CompletionChunk: - class Kind: +class CompletionChunk(object): + class Kind(object): def __init__(self, name): self.name = name @@ -2563,7 +2563,7 @@ 20: CompletionChunk.Kind("VerticalSpace")} class CompletionString(ClangObject): - class Availability: + class Availability(object): def __init__(self, name): self.name = name @@ -2656,7 +2656,7 @@ @property def diagnostics(self): - class DiagnosticsItr: + class DiagnosticsItr(object): def __init__(self, ccr): self.ccr= ccr @@ -2958,7 +2958,7 @@ """ Return an iterable (and indexable) object containing the diagnostics. """ - class DiagIterator: + class DiagIterator(object): def __init__(self, tu): self.tu = tu @@ -4090,7 +4090,7 @@ for f in functionList: register(f) -class Config: +class Config(object): library_path = None library_file = None compatibility_check = True Index: docs/tools/dump_format_style.py =================================================================== --- docs/tools/dump_format_style.py +++ docs/tools/dump_format_style.py @@ -32,7 +32,7 @@ return s return indent + s -class Option: +class Option(object): def __init__(self, name, type, comment): self.name = name self.type = type @@ -50,7 +50,7 @@ 2) return s -class NestedStruct: +class NestedStruct(object): def __init__(self, name, comment): self.name = name self.comment = comment.strip() @@ -59,7 +59,7 @@ def __str__(self): return '\n'.join(map(str, self.values)) -class NestedField: +class NestedField(object): def __init__(self, name, comment): self.name = name self.comment = comment.strip() @@ -69,7 +69,7 @@ self.name, doxygen2rst(indent(self.comment, 2, indent_first_line=False))) -class Enum: +class Enum(object): def __init__(self, name, comment): self.name = name self.comment = comment.strip() @@ -78,7 +78,7 @@ def __str__(self): return '\n'.join(map(str, self.values)) -class EnumValue: +class EnumValue(object): def __init__(self, name, comment): self.name = name self.comment = comment @@ -101,7 +101,7 @@ return line[4:] + '\n' def read_options(header): - class State: + class State(object): BeforeStruct, Finished, InStruct, InNestedStruct, InNestedFieldComent, \ InFieldComment, InEnum, InEnumMemberComment = range(8) state = State.BeforeStruct Index: tools/scan-view/share/Reporter.py =================================================================== --- tools/scan-view/share/Reporter.py +++ tools/scan-view/share/Reporter.py @@ -16,7 +16,7 @@ # Collect information about a bug. -class BugReport: +class BugReport(object): def __init__(self, title, description, files): self.title = title self.description = description @@ -37,7 +37,7 @@ # ReporterParameter #===------------------------------------------------------------------------===# -class ReporterParameter: +class ReporterParameter(object): def __init__(self, n): self.name = n def getName(self): @@ -75,7 +75,7 @@ # Reporters #===------------------------------------------------------------------------===# -class EmailReporter: +class EmailReporter(object): def getName(self): return 'Email' @@ -143,7 +143,7 @@ return "Message sent!" -class BugzillaReporter: +class BugzillaReporter(object): def getName(self): return 'Bugzilla' @@ -174,7 +174,7 @@ else: return '7' -class RadarReporter: +class RadarReporter(object): @staticmethod def isAvailable(): # FIXME: Find this .scpt better Index: tools/scan-view/share/ScanView.py =================================================================== --- tools/scan-view/share/ScanView.py +++ tools/scan-view/share/ScanView.py @@ -422,7 +422,7 @@ return self.send_string(res, 'text/plain') def get_report_context(self, report): - class Context: + class Context(object): pass if report is None or report == 'None': data = self.load_crashes() Index: utils/ABITest/ABITestGen.py =================================================================== --- utils/ABITest/ABITestGen.py +++ utils/ABITest/ABITestGen.py @@ -10,7 +10,7 @@ #### -class TypePrinter: +class TypePrinter(object): def __init__(self, output, outputHeader=None, outputTests=None, outputDriver=None, headerName=None, info=None): Index: utils/ABITest/TypeGen.py =================================================================== --- utils/ABITest/TypeGen.py +++ utils/ABITest/TypeGen.py @@ -17,7 +17,7 @@ ### # Actual type types -class Type: +class Type(object): def isBitField(self): return False Index: utils/analyzer/CmpRuns.py =================================================================== --- utils/analyzer/CmpRuns.py +++ utils/analyzer/CmpRuns.py @@ -38,7 +38,7 @@ STATS_REGEXP = re.compile(r"Statistics: (\{.+\})", re.MULTILINE | re.DOTALL) -class Colors: +class Colors(object): """ Color for terminal highlight. """ @@ -50,14 +50,14 @@ # 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 @@ 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 Index: utils/modfuzz.py =================================================================== --- utils/modfuzz.py +++ utils/modfuzz.py @@ -12,7 +12,7 @@ clang = sys.argv[1] none_opts = 0.3 -class Decl: +class Decl(object): def __init__(self, text, depends=[], provides=[], conflicts=[]): self.text = text self.depends = depends @@ -39,7 +39,7 @@ Decl('X %(name)s;\n', depends=['X']), ] -class FS: +class FS(object): def __init__(self): self.fs = {} self.prevfs = {} @@ -62,7 +62,7 @@ fs = FS() -class CodeModel: +class CodeModel(object): def __init__(self): self.source = '' self.modules = {} Index: utils/token-delta.py =================================================================== --- utils/token-delta.py +++ utils/token-delta.py @@ -94,7 +94,7 @@ ### -class Token: +class Token(object): def __init__(self, type, data, flags, file, line, column): self.type = type self.data = data