[Python-checkins] python/dist/src/Demo/threads sync.py,1.7,1.8 (original) (raw)

fdrake at users.sourceforge.net fdrake at users.sourceforge.net
Tue May 11 23:15:13 EDT 2004


Update of /cvsroot/python/python/dist/src/Demo/threads In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13458

Modified Files: sync.py Log Message: fix error message; closes SF patch #932796

Index: sync.py

RCS file: /cvsroot/python/python/dist/src/Demo/threads/sync.py,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** sync.py 12 Feb 2004 17:35:03 -0000 1.7 --- sync.py 12 May 2004 03:15:07 -0000 1.8


*** 419,423 **** if self.count == self.maxcount: raise ValueError, '.v() tried to raise semaphore count above '
! 'initial value %r' % (maxcount,)) self.count = self.count + 1 self.nonzero.signal() --- 419,423 ---- if self.count == self.maxcount: raise ValueError, '.v() tried to raise semaphore count above '
! 'initial value %r' % self.maxcount self.count = self.count + 1 self.nonzero.signal()



More information about the Python-checkins mailing list