# HG changeset patch # User Paul Boddie # Date 1488206945 -3600 # Node ID 5c8fd0afb2ec5df8eae72ba66765a3d4b2914d3e # Parent 650c24cf71f125e9af2d1e529bce0bf570b5b3ec Removed superfluous base classes from results. diff -r 650c24cf71f1 -r 5c8fd0afb2ec translator.py --- a/translator.py Mon Feb 27 14:52:11 2017 +0100 +++ b/translator.py Mon Feb 27 15:49:05 2017 +0100 @@ -201,7 +201,7 @@ def __repr__(self): return "TrResolvedInstanceRef(%r, %r)" % (self.ref, self.expr) -class AttrResult(Expression, TranslationResult, InstructionSequence): +class AttrResult(Expression, InstructionSequence): "A translation result for an attribute access." @@ -240,7 +240,7 @@ def __repr__(self): return "AttrResult(%r, %r, %r)" % (self.instructions, self.refs, self.location) -class InvocationResult(Expression, TranslationResult, InstructionSequence): +class InvocationResult(Expression, InstructionSequence): "A translation result for an invocation." @@ -264,7 +264,7 @@ def __repr__(self): return "InstantiationResult(%r, %r)" % (self.ref, self.instructions) -class PredefinedConstantRef(Expression, TranslationResult): +class PredefinedConstantRef(Expression): "A predefined constant reference." @@ -293,7 +293,7 @@ def __repr__(self): return "PredefinedConstantRef(%r)" % self.value -class BooleanResult(Expression, TranslationResult): +class BooleanResult(Expression): "A expression producing a boolean result."