diff options
author | Guido van Rossum <guido@python.org> | 1992-01-01 19:35:13 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-01-01 19:35:13 (GMT) |
commit | bdfcfccbe591e15221f35add01132174c9b4e669 (patch) | |
tree | 7e5f0d52b8c44e623b12e8f4b5cd645c361e5aeb /Lib/sched.py | |
parent | 4d8e859e8f0a209a7e999ce9cc0988156c795949 (diff) | |
download | cpython-bdfcfccbe591e15221f35add01132174c9b4e669.zip cpython-bdfcfccbe591e15221f35add01132174c9b4e669.tar.gz cpython-bdfcfccbe591e15221f35add01132174c9b4e669.tar.bz2 |
New == syntax
Diffstat (limited to 'Lib/sched.py')
-rw-r--r-- | Lib/sched.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/sched.py b/Lib/sched.py index e7d2b87..4a45309 100644 --- a/Lib/sched.py +++ b/Lib/sched.py @@ -49,7 +49,7 @@ class scheduler: for i in range(len(q)): qtime, qpri, qact, qarg = q[i] if time < qtime: break - if time = qtime and priority < qpri: break + if time == qtime and priority < qpri: break else: i = len(q) q.insert(i, event) @@ -72,7 +72,7 @@ class scheduler: # Check whether the queue is empty. # def empty(self): - return len(self.queue) = 0 + return len(self.queue) == 0 # # Run: execute events until the queue is empty. # |