From: Fred Drake Date: Wed, 12 May 2004 03:15:07 +0000 (+0000) Subject: fix error message; closes SF patch #932796 X-Git-Tag: v2.4a1~389 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=09659fbe690adf6d022daed7d02016b8ff756d41;p=python fix error message; closes SF patch #932796 --- diff --git a/Demo/threads/sync.py b/Demo/threads/sync.py index 1688403b7f..843767ac7a 100644 --- a/Demo/threads/sync.py +++ b/Demo/threads/sync.py @@ -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()