mirror of
https://github.com/python/cpython.git
synced 2025-07-29 14:15:07 +00:00
SF 1676321: empty() returned wrong result
This commit is contained in:
parent
9caadf80a1
commit
8b188e6a49
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue