From d91085598f5185b267ea51a3f615da9527af2ed2 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Fri, 17 Mar 2006 08:00:19 +0000 Subject: Remove apply() --- Demo/threads/Generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Demo/threads/Generator.py') diff --git a/Demo/threads/Generator.py b/Demo/threads/Generator.py index a2713af1a1..63bed9b905 100644 --- a/Demo/threads/Generator.py +++ b/Demo/threads/Generator.py @@ -22,7 +22,7 @@ class Generator: self.putlock.acquire() if not self.killed: try: - apply(self.func, (self,) + self.args) + self.func(self, *self.args) except Killed: pass finally: -- cgit v1.2.1