diff options
| author | Neal Norwitz <nnorwitz@gmail.com> | 2006-03-17 08:00:19 (GMT) |
|---|---|---|
| committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-03-17 08:00:19 (GMT) |
| commit | d91085598f5185b267ea51a3f615da9527af2ed2 (patch) | |
| tree | 80849b9455438e9963a61d7aff3fc3b060213553 /Demo/metaclasses/Eiffel.py | |
| parent | fe55464f393fc002fd0911a4d8dba6694723d408 (diff) | |
| download | cpython-d91085598f5185b267ea51a3f615da9527af2ed2.zip cpython-d91085598f5185b267ea51a3f615da9527af2ed2.tar.gz cpython-d91085598f5185b267ea51a3f615da9527af2ed2.tar.bz2 | |
Remove apply()
Diffstat (limited to 'Demo/metaclasses/Eiffel.py')
| -rw-r--r-- | Demo/metaclasses/Eiffel.py | 6 |
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): |
