SF 1676321: empty() returned wrong result

This commit is contained in:
Raymond Hettinger 2007-03-08 19:24:27 +00:00
parent 9caadf80a1
commit 8b188e6a49
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ class scheduler:
def empty(self): def empty(self):
"""Check whether the queue is empty.""" """Check whether the queue is empty."""
return not not self.queue return not self.queue
def run(self): def run(self):
"""Execute events until the queue is empty. """Execute events until the queue is empty.