Kaydet (Commit) 09659fbe authored tarafından Fred Drake's avatar Fred Drake

fix error message; closes SF patch #932796

üst bb066cf8
...@@ -418,7 +418,7 @@ class semaphore: ...@@ -418,7 +418,7 @@ class semaphore:
self.nonzero.acquire() self.nonzero.acquire()
if self.count == self.maxcount: if self.count == self.maxcount:
raise ValueError, '.v() tried to raise semaphore count above ' \ raise ValueError, '.v() tried to raise semaphore count above ' \
'initial value %r' % (maxcount,)) 'initial value %r' % self.maxcount
self.count = self.count + 1 self.count = self.count + 1
self.nonzero.signal() self.nonzero.signal()
self.nonzero.release() self.nonzero.release()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment