aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-10-31 17:16:49 -0400
committerJesse Luehrs <doy@tozt.net>2014-10-31 17:16:49 -0400
commit54b7fb63477e275fe09760d5514d7e118c7db207 (patch)
tree4d05e7c99f3c6d29440849780cee41c94ffc5669
parent3b411b107dd9cbaded7138a6a08ccd6cf1838f5c (diff)
downloadpython-mop-54b7fb63477e275fe09760d5514d7e118c7db207.tar.gz
python-mop-54b7fb63477e275fe09760d5514d7e118c7db207.zip
more meaningful names here
-rw-r--r--mop/__init__.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/mop/__init__.py b/mop/__init__.py
index dffa4f8..4d83191 100644
--- a/mop/__init__.py
+++ b/mop/__init__.py
@@ -106,17 +106,17 @@ def bootstrap():
Method.__class__ = python_class_for(Class)
Attribute.__class__ = python_class_for(Class)
- m1 = Class.slots["methods"]["add_method"]
- m1.metaclass = Method
- m1.__class__ = python_class_for(Method)
- python_install_method(Class, "add_method", m1)
+ method_add_method = Class.slots["methods"]["add_method"]
+ method_add_method.metaclass = Method
+ method_add_method.__class__ = python_class_for(Method)
+ python_install_method(Class, "add_method", method_add_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
- m2 = Method.slots["methods"]["execute"]
- m2.metaclass = Method
- m2.__class__ = python_class_for(Method)
+ method_execute = Method.slots["methods"]["execute"]
+ method_execute.metaclass = Method
+ method_execute.__class__ = python_class_for(Method)
setattr(python_class_for(Method), "execute", execute_method)
# Phase 4: manually assemble enough scaffolding to allow object construction