[Python-checkins] python/dist/src/Lib Queue.py,1.14.4.1,1.14.4.2

anthonybaxter@sourceforge.net anthonybaxter@sourceforge.net
Mon, 22 Apr 2002 19:19:05 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv31328/Lib

Modified Files:
      Tag: release21-maint
	Queue.py 
Log Message:
*sigh* did a 'make test' in the wrong window. fixing this up to
not include 'True'. test_queue passes again.


Index: Queue.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/Queue.py,v
retrieving revision 1.14.4.1
retrieving revision 1.14.4.2
diff -C2 -d -r1.14.4.1 -r1.14.4.2
*** Queue.py	23 Apr 2002 01:55:29 -0000	1.14.4.1
--- Queue.py	23 Apr 2002 02:19:02 -0000	1.14.4.2
***************
*** 56,60 ****
              raise Full
          self.mutex.acquire()
!         release_fsema = True
          try:
              was_empty = self._empty()
--- 56,60 ----
              raise Full
          self.mutex.acquire()
!         release_fsema = 1
          try:
              was_empty = self._empty()
***************
*** 65,69 ****
                  self.esema.release()
              # If we fail before here, the queue can not be full, so
!             # release_full_sema remains True
              release_fsema = not self._full()
          finally:
--- 65,69 ----
                  self.esema.release()
              # If we fail before here, the queue can not be full, so
!             # release_full_sema remains true
              release_fsema = not self._full()
          finally:
***************
*** 96,100 ****
              raise Empty
          self.mutex.acquire()
!         release_esema = True
          try:
              was_full = self._full()
--- 96,100 ----
              raise Empty
          self.mutex.acquire()
!         release_esema = 1
          try:
              was_full = self._full()
***************
*** 105,109 ****
                  self.fsema.release()
              # Failure means empty state also unchanged - release_esema
!             # remains True.
              release_esema = not self._empty()
          finally:
--- 105,109 ----
                  self.fsema.release()
              # Failure means empty state also unchanged - release_esema
!             # remains true.
              release_esema = not self._empty()
          finally: