From: Guido van Rossum Date: Mon, 16 May 1994 09:26:24 +0000 (+0000) Subject: Fixed for stricter argument matching rules X-Git-Tag: v1.1~346 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3ac5b00d4091e2c06bafe5fc5fb18798d3fa701b;p=thirdparty%2FPython%2Fcpython.git Fixed for stricter argument matching rules --- diff --git a/Demo/threads/find.py b/Demo/threads/find.py index 3bc54feba0ad..940360abdff2 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()