From 8d2ddc21cbfcf56096c89056f9ff9e0f7203c614 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 1 Nov 2014 13:06:46 -0400 Subject: the metaclass is already set here --- mop/__init__.py | 6 ++---- 1 file 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 -- cgit v1.2.3-54-g00ecf