fixed bug where coros.semaphore passed limit arg to BoundedSemaphore,
which doesn't support it. This would have raised a TypeError because of the extra arg if ever called.
This commit is contained in:
@@ -47,7 +47,7 @@ def semaphore(count=0, limit=None):
|
||||
if limit is None:
|
||||
return Semaphore(count)
|
||||
else:
|
||||
return BoundedSemaphore(count, limit)
|
||||
return BoundedSemaphore(count)
|
||||
|
||||
|
||||
class metaphore(object):
|
||||
|
Reference in New Issue
Block a user