aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-11-01 13:06:46 -0400
committerJesse Luehrs <doy@tozt.net>2014-11-01 13:06:46 -0400
commit8d2ddc21cbfcf56096c89056f9ff9e0f7203c614 (patch)
tree6ce95db240077b823e3a4060ec95538c7a75ee4e
parent8cbd2de0be041ca69ba192186e668c0680a045b7 (diff)
downloadpython-mop-8d2ddc21cbfcf56096c89056f9ff9e0f7203c614.tar.gz
python-mop-8d2ddc21cbfcf56096c89056f9ff9e0f7203c614.zip
the metaclass is already set here
-rw-r--r--mop/__init__.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/mop/__init__.py b/mop/__init__.py
index b18465b..d5025e7 100644
--- a/mop/__init__.py
+++ b/mop/__init__.py
@@ -98,9 +98,8 @@ def bootstrap():
method_add_method = bootstrap_create_method(
"add_method", add_method
)
- method_add_method.metaclass = Method
- method_add_method.__class__ = python_class_for(Method)
Class.slots["methods"]["add_method"] = method_add_method
+ method_add_method.__class__ = python_class_for(Method)
python_install_method(Class, "add_method", method_add_method)
# same here
@@ -109,9 +108,8 @@ def bootstrap():
method_execute = bootstrap_create_method(
"execute", execute
)
- method_execute.metaclass = Method
- method_execute.__class__ = python_class_for(Method)
Method.slots["methods"]["execute"] = method_execute
+ method_execute.__class__ = python_class_for(Method)
# note: not using python_install_method here, since that installs a method
# which calls method.execute, and this is where we have the recursion base
# case