mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Fixed for stricter argument matching rules
This commit is contained in:
parent
1d28e1707a
commit
3ac5b00d40
1 changed files with 2 additions and 3 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue