From 842471171b898c3dcbde326f6c41df9e953f993c Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 31 Oct 2014 13:39:25 -0400 Subject: the real add_method should use methods --- mop/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mop/__init__.py b/mop/__init__.py index a38e506..4d806d3 100644 --- a/mop/__init__.py +++ b/mop/__init__.py @@ -212,7 +212,7 @@ def bootstrap(): python_install_method(Attribute, method.get_name(), method) def add_method(self, method): - self.slots["methods"][method.get_name()] = method + self.get_local_methods()[method.get_name()] = method Class.add_method(Method.new(name="add_method", body=add_method)) bootstrap() -- cgit v1.2.3-54-g00ecf