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:
Tavis Rudd
2010-02-27 01:23:18 -05:00
parent 28a2d4944c
commit cea4fc8188

View File

@@ -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):