diff options
author | Raymond Hettinger <python@rcn.com> | 2007-03-08 19:24:27 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2007-03-08 19:24:27 (GMT) |
commit | 8b188e6a497bb16b3264f1d376f8399154e21a9d (patch) | |
tree | 7dcf5be334761198024b169a4a7a7b3bee22348a /Lib/sched.py | |
parent | 9caadf80a1876a62444167a1137c9c5e71d09106 (diff) | |
download | cpython-8b188e6a497bb16b3264f1d376f8399154e21a9d.zip cpython-8b188e6a497bb16b3264f1d376f8399154e21a9d.tar.gz cpython-8b188e6a497bb16b3264f1d376f8399154e21a9d.tar.bz2 |
SF 1676321: empty() returned wrong result
Diffstat (limited to 'Lib/sched.py')
-rw-r--r-- | Lib/sched.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/sched.py b/Lib/sched.py index 2f8df05..7c3235e 100644 --- a/Lib/sched.py +++ b/Lib/sched.py @@ -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. |