mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
fix error message; closes SF patch #932796
This commit is contained in:
parent
bb066cf841
commit
09659fbe69
1 changed files with 1 additions and 1 deletions
|
@ -418,7 +418,7 @@ class semaphore:
|
|||
self.nonzero.acquire()
|
||||
if self.count == self.maxcount:
|
||||
raise ValueError, '.v() tried to raise semaphore count above ' \
|
||||
'initial value %r' % (maxcount,))
|
||||
'initial value %r' % self.maxcount
|
||||
self.count = self.count + 1
|
||||
self.nonzero.signal()
|
||||
self.nonzero.release()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue