mirror of
https://github.com/python/cpython.git
synced 2025-09-01 14:38:00 +00:00
Raise statement normalization in Lib/.
This commit is contained in:
parent
8b3febef2f
commit
ce36ad8a46
80 changed files with 502 additions and 530 deletions
|
@ -326,7 +326,7 @@ class _BoundedSemaphore(_Semaphore):
|
|||
|
||||
def release(self):
|
||||
if self._value >= self._initial_value:
|
||||
raise ValueError, "Semaphore released too many times"
|
||||
raise ValueError("Semaphore released too many times")
|
||||
return _Semaphore.release(self)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue