From: A. Jesse Jiryu Davis Date: Sat, 28 Feb 2015 17:14:29 +0000 (-0500) Subject: Add docstring to BoundedSemaphore.release. X-Git-Tag: v4.2.0b1~91^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1354%2Fhead;p=thirdparty%2Ftornado.git Add docstring to BoundedSemaphore.release. --- diff --git a/tornado/locks.py b/tornado/locks.py index 1367e1de8..bd96d58ba 100644 --- a/tornado/locks.py +++ b/tornado/locks.py @@ -238,6 +238,7 @@ class BoundedSemaphore(Semaphore): self._initial_value = value def release(self): + """Increment the counter and wake one waiter.""" if self._value >= self._initial_value: raise ValueError("Semaphore released too many times") super(BoundedSemaphore, self).release()