summaryrefslogtreecommitdiffstats
path: root/Demo/newmetaclasses/Eiffel.py
diff options
context:
space:
mode:
Diffstat (limited to 'Demo/newmetaclasses/Eiffel.py')
-rw-r--r--Demo/newmetaclasses/Eiffel.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Demo/newmetaclasses/Eiffel.py b/Demo/newmetaclasses/Eiffel.py
index 1dd7e6c..78a8bb5 100644
--- a/Demo/newmetaclasses/Eiffel.py
+++ b/Demo/newmetaclasses/Eiffel.py
@@ -48,7 +48,7 @@ class EiffelMetaClass1(EiffelBaseMetaClass):
method.__doc__ = func.__doc__
return method
-
+
make_eiffel_method = staticmethod(make_eiffel_method)
class EiffelMethodWrapper:
@@ -66,7 +66,7 @@ class EiffelDescriptor(object):
self._func = func
self._pre = pre
self._post = post
-
+
self.__name__ = func.__name__
self.__doc__ = func.__doc__
@@ -141,4 +141,3 @@ def _test(metaclass):
if __name__ == "__main__":
_test(EiffelMetaClass1)
_test(EiffelMetaClass2)
-