SF 1676321: empty() returned wrong result

This commit is contained in:
Raymond Hettinger 2007-03-08 19:23:25 +00:00
parent d59ea47e0c
commit 154bc7c9bd
2 changed files with 3 additions and 1 deletions

View file

@ -72,7 +72,7 @@ class scheduler:
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.