summaryrefslogtreecommitdiffstats
path: root/Demo/metaclasses/Eiffel.py
diff options
context:
space:
mode:
Diffstat (limited to 'Demo/metaclasses/Eiffel.py')
-rw-r--r--Demo/metaclasses/Eiffel.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Demo/metaclasses/Eiffel.py b/Demo/metaclasses/Eiffel.py
index 24fac14..8c39746 100644
--- a/Demo/metaclasses/Eiffel.py
+++ b/Demo/metaclasses/Eiffel.py
@@ -82,10 +82,10 @@ class EiffelMethodWrapper(MetaMethodWrapper):
def __call__(self, *args, **kw):
if self.pre:
- apply(self.pre, args, kw)
- Result = apply(self.func, (self.inst,) + args, kw)
+ self.pre(*args, **kw)
+ Result = self.func(self.inst, *args, **kw)
if self.post:
- apply(self.post, (Result,) + args, kw)
+ self.post(Result, *args, **kw)
return Result
class EiffelHelper(MetaHelper):