From: Raymond Hettinger Date: Thu, 8 Mar 2007 19:24:27 +0000 (+0000) Subject: SF 1676321: empty() returned wrong result X-Git-Tag: v2.6a1~2076 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8b188e6a497bb16b3264f1d376f8399154e21a9d;p=python SF 1676321: empty() returned wrong result --- diff --git a/Lib/sched.py b/Lib/sched.py index 2f8df05648..7c3235e9f6 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.