1.1 --- a/deducer.py Thu Oct 06 19:28:43 2016 +0200
1.2 +++ b/deducer.py Fri Oct 07 21:36:08 2016 +0200
1.3 @@ -529,7 +529,7 @@
1.4 referenced_attrs = self.referenced_attrs[location]
1.5
1.6 if not referenced_attrs:
1.7 - raise DeduceError, location
1.8 + raise DeduceError, repr(location)
1.9
1.10 # Record attribute information for each name used on the
1.11 # accessor.
2.1 --- a/errors.py Thu Oct 06 19:28:43 2016 +0200
2.2 +++ b/errors.py Fri Oct 07 21:36:08 2016 +0200
2.3 @@ -78,11 +78,12 @@
2.4
2.5 pass
2.6
2.7 -class DeduceError(NodeProcessingError):
2.8 +class DeduceError(ProgramError):
2.9
2.10 "An error during the deduction process."
2.11
2.12 - pass
2.13 + def __str__(self):
2.14 + return "Error in deduction: %s" % self.message
2.15
2.16 class TranslateError(NodeProcessingError):
2.17