[Python-checkins] r54224 - in python/branches/release25-maint: Lib/sched.py Misc/NEWS

raymond.hettinger python-checkins at python.org
Thu Mar 8 20:23:26 CET 2007


Author: raymond.hettinger
Date: Thu Mar  8 20:23:25 2007
New Revision: 54224

Modified:
   python/branches/release25-maint/Lib/sched.py
   python/branches/release25-maint/Misc/NEWS
Log:
SF 1676321:  empty() returned wrong result

Modified: python/branches/release25-maint/Lib/sched.py
==============================================================================
--- python/branches/release25-maint/Lib/sched.py	(original)
+++ python/branches/release25-maint/Lib/sched.py	Thu Mar  8 20:23:25 2007
@@ -72,7 +72,7 @@
 
     def empty(self):
         """Check whether the queue is empty."""
-        return not not self.queue
+        return not self.queue
 
     def run(self):
         """Execute events until the queue is empty.

Modified: python/branches/release25-maint/Misc/NEWS
==============================================================================
--- python/branches/release25-maint/Misc/NEWS	(original)
+++ python/branches/release25-maint/Misc/NEWS	Thu Mar  8 20:23:25 2007
@@ -197,6 +197,8 @@
 Library
 -------
 
+- Bugs #1676321:  the empty() function in sched.py returned the wrong result
+
 - unittest now verifies more of its assumptions. In particular, TestCase
   and TestSuite subclasses (not instances) are no longer accepted in
   TestSuite.addTest(). This should cause no incompatibility since it


More information about the Python-checkins mailing list