]> granicus.if.org Git - python/commitdiff
fix error message; closes SF patch #932796
authorFred Drake <fdrake@acm.org>
Wed, 12 May 2004 03:15:07 +0000 (03:15 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 12 May 2004 03:15:07 +0000 (03:15 +0000)
Demo/threads/sync.py

index 1688403b7f27d7a6716f133dcc71e4be48c8a606..843767ac7ae4fb8cfa5129563f74a44dda10a984 100644 (file)
@@ -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()