diff options
Diffstat (limited to 'Demo/threads/Generator.py')
-rw-r--r-- | Demo/threads/Generator.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Demo/threads/Generator.py b/Demo/threads/Generator.py index a2713af..63bed9b 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: |