diff options
author | Guido van Rossum <guido@python.org> | 1994-05-16 09:26:24 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1994-05-16 09:26:24 (GMT) |
commit | 3ac5b00d4091e2c06bafe5fc5fb18798d3fa701b (patch) | |
tree | 63bc10dbb6df4b35ff7a66b199e84ed58063be84 /Demo/threads | |
parent | 1d28e1707ab537289b6923b9b08482cf21b1d269 (diff) | |
download | cpython-3ac5b00d4091e2c06bafe5fc5fb18798d3fa701b.zip cpython-3ac5b00d4091e2c06bafe5fc5fb18798d3fa701b.tar.gz cpython-3ac5b00d4091e2c06bafe5fc5fb18798d3fa701b.tar.bz2 |
Fixed for stricter argument matching rules
Diffstat (limited to 'Demo/threads')
-rw-r--r-- | Demo/threads/find.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Demo/threads/find.py b/Demo/threads/find.py index 3bc54fe..940360a 100644 --- a/Demo/threads/find.py +++ b/Demo/threads/find.py @@ -46,9 +46,8 @@ class WorkQ: self.work = [] self.busy = 0 - def addwork(self, job): - if not job: - raise TypeError, 'cannot add null job' + def addwork(self, func, args): + job = (func, args) self.mutex.acquire() self.work.append(job) self.mutex.release() |