aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-10-31 13:39:25 -0400
committerJesse Luehrs <doy@tozt.net>2014-10-31 13:39:25 -0400
commit842471171b898c3dcbde326f6c41df9e953f993c (patch)
treed9bd2a7dc85bbf26fe4c513a1ce939d74c5d8130
parent92415ec3e819b7e20b65427a3acc06d3588db960 (diff)
downloadpython-mop-842471171b898c3dcbde326f6c41df9e953f993c.tar.gz
python-mop-842471171b898c3dcbde326f6c41df9e953f993c.zip
the real add_method should use methods
-rw-r--r--mop/__init__.py2
1 files changed, 1 insertions, 1 deletions
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()