diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-10-31 13:39:25 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-10-31 13:39:25 -0400 |
commit | 842471171b898c3dcbde326f6c41df9e953f993c (patch) | |
tree | d9bd2a7dc85bbf26fe4c513a1ce939d74c5d8130 /mop/__init__.py | |
parent | 92415ec3e819b7e20b65427a3acc06d3588db960 (diff) | |
download | python-mop-842471171b898c3dcbde326f6c41df9e953f993c.tar.gz python-mop-842471171b898c3dcbde326f6c41df9e953f993c.zip |
the real add_method should use methods
Diffstat (limited to 'mop/__init__.py')
-rw-r--r-- | mop/__init__.py | 2 |
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() |