summaryrefslogtreecommitdiffstats
path: root/Demo/metaclasses/Simple.py
diff options
context:
space:
mode:
Diffstat (limited to 'Demo/metaclasses/Simple.py')
-rw-r--r--Demo/metaclasses/Simple.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Demo/metaclasses/Simple.py b/Demo/metaclasses/Simple.py
index 03ed259..e3e54f7 100644
--- a/Demo/metaclasses/Simple.py
+++ b/Demo/metaclasses/Simple.py
@@ -28,7 +28,7 @@ class BoundMethod:
self.instance = instance
def __call__(self, *args):
print "calling", self.function, "for", self.instance, "with", args
- return apply(self.function, (self.instance,) + args)
+ return self.function(self.instance, *args)
Trace = Tracing('Trace', (), {})