From 09659fbe690adf6d022daed7d02016b8ff756d41 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Wed, 12 May 2004 03:15:07 +0000 Subject: fix error message; closes SF patch #932796 --- Demo/threads/sync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Demo/threads/sync.py b/Demo/threads/sync.py index 1688403..843767a 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() -- cgit v0.12