# HG changeset patch # User Paul Boddie # Date 1479484027 -3600 # Node ID b062edfbeaab6e1b70fff0a29b78a1e6db5be6bf # Parent 653ac525f897a52afbd098619a4938d5558eb06c Improved deduction error messages. diff -r 653ac525f897 -r b062edfbeaab deducer.py --- a/deducer.py Thu Nov 17 21:48:26 2016 +0100 +++ b/deducer.py Fri Nov 18 16:47:07 2016 +0100 @@ -540,7 +540,7 @@ referenced_attrs = self.referenced_attrs[location] if not referenced_attrs: - raise DeduceError, repr(location) + raise DeduceError("In %s, access via %s to attribute %s (occurrence %d) cannot be identified." % location) # Record attribute information for each name used on the # accessor.