summaryrefslogtreecommitdiffstats
path: root/Demo/threads
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2004-05-12 03:15:07 (GMT)
committerFred Drake <fdrake@acm.org>2004-05-12 03:15:07 (GMT)
commit09659fbe690adf6d022daed7d02016b8ff756d41 (patch)
treebac32251a9e5f7c1ea22e0811494958800c0c42d /Demo/threads
parentbb066cf84149684297d306a708a82f5c276118fb (diff)
downloadcpython-09659fbe690adf6d022daed7d02016b8ff756d41.zip
cpython-09659fbe690adf6d022daed7d02016b8ff756d41.tar.gz
cpython-09659fbe690adf6d022daed7d02016b8ff756d41.tar.bz2
fix error message; closes SF patch #932796
Diffstat (limited to 'Demo/threads')
-rw-r--r--Demo/threads/sync.py2
1 files changed, 1 insertions, 1 deletions
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()