mirror of
https://github.com/python/cpython.git
synced 2025-11-01 06:01:29 +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 @@ def __init__(self, value=1, verbose=None):
|
|||
|
||||
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