1.1 --- a/optimiser.py Mon Nov 21 17:05:41 2016 +0100
1.2 +++ b/optimiser.py Mon Nov 21 19:02:43 2016 +0100
1.3 @@ -512,12 +512,9 @@
1.4 parent, attrname = origin.rsplit(".", 1)
1.5 emit(("__store_via_object", parent, attrname, "<assexpr>"))
1.6
1.7 - elif final_method == "static":
1.8 - accessor = ("__load_static", origin)
1.9 -
1.10 - elif final_method == "static-invoke":
1.11 - kind = self.importer.get_object(origin).get_kind()
1.12 - accessor = ("__encode_callable", origin, kind)
1.13 + elif final_method in ("static", "static-invoke"):
1.14 + parent, attrname = origin.rsplit(".", 1)
1.15 + accessor = ("__load_static", parent, origin)
1.16
1.17 # Wrap accesses in context operations.
1.18