Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 09659fb

Browse filesBrowse files
committed
fix error message; closes SF patch #932796
1 parent bb066cf commit 09659fb
Copy full SHA for 09659fb

1 file changed

+1-1Lines changed: 1 addition & 1 deletion

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Demo/threads/sync.py‎

Copy file name to clipboardExpand all lines: Demo/threads/sync.py
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.