# HG changeset patch # User Paul Boddie # Date 1480289093 -3600 # Node ID d81ea7b97af1703099535b10275c6628d9c1ae9c # Parent cd7353a799382cc49f6d4d2f45e7af3c200b272b Ensure that constant accessors really are static in attribute plans. diff -r cd7353a79938 -r d81ea7b97af1 deducer.py --- a/deducer.py Sun Nov 27 23:22:51 2016 +0100 +++ b/deducer.py Mon Nov 28 00:24:53 2016 +0100 @@ -1834,11 +1834,14 @@ if const_access: base = len(objtypes) == 1 and first(objtypes) - # Constant accessors are static. + # Name-based accesses. elif name: ref = self.importer.identify("%s.%s" % (path, name)) - if ref: + + # Constant accessors are static. + + if ref and ref.static(): base = ref.get_origin() # Usage of previously-generated guard and test details.