# HG changeset patch # User Paul Boddie # Date 1479859244 -3600 # Node ID 0ebba845f9b099e77c7982aa07e52f44720be2d5 # Parent 91d68d0e4a154fbc53e7d864aa6ead68e8873da4 Fixed anonymous accesses, preventing accidental lookup of None. Fixed the attribute access plan output, encoding anonymous accessors. diff -r 91d68d0e4a15 -r 0ebba845f9b0 deducer.py --- a/deducer.py Wed Nov 23 00:22:56 2016 +0100 +++ b/deducer.py Wed Nov 23 01:00:44 2016 +0100 @@ -406,7 +406,8 @@ first_method, final_method, attr = self.access_plans[location] print >>f_attrs, encode_access_location(location), \ - name, test, test_type or "{}", \ + name or "{}", \ + test, test_type or "{}", \ base or "{}", \ ".".join(traversed) or "{}", \ ".".join(traversal_modes) or "{}", \ @@ -1872,7 +1873,7 @@ # Constant accessors are static. - else: + elif name: ref = self.importer.identify("%s.%s" % (path, name)) if ref: base = ref.get_origin()