Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 09659fb

Browse files
committed
fix error message; closes SF patch #932796
1 parent bb066cf commit 09659fb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Demo/threads/sync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def v(self):
418418
self.nonzero.acquire()
419419
if self.count == self.maxcount:
420420
raise ValueError, '.v() tried to raise semaphore count above ' \
421-
'initial value %r' % (maxcount,))
421+
'initial value %r' % self.maxcount
422422
self.count = self.count + 1
423423
self.nonzero.signal()
424424
self.nonzero.release()

0 commit comments

Comments
 (0)