We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb066cf commit 09659fbCopy full SHA for 09659fb
1 file changed
Demo/threads/sync.py
@@ -418,7 +418,7 @@ def v(self):
418
self.nonzero.acquire()
419
if self.count == self.maxcount:
420
raise ValueError, '.v() tried to raise semaphore count above ' \
421
- 'initial value %r' % (maxcount,))
+ 'initial value %r' % self.maxcount
422
self.count = self.count + 1
423
self.nonzero.signal()
424
self.nonzero.release()
0 commit comments