summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Noel <GregNoel@tigris.org>2008-10-04 15:35:50 (GMT)
committerGreg Noel <GregNoel@tigris.org>2008-10-04 15:35:50 (GMT)
commit5f5fdeebdae3ee9008b2355fd5ec36783488b5ec (patch)
tree0c4e9ff2ca7a7e8b08000da0938c4349686d4b14
parent1786d861f5f1c6ed860e3055288eba4bd83c07ca (diff)
downloadSCons-5f5fdeebdae3ee9008b2355fd5ec36783488b5ec.zip
SCons-5f5fdeebdae3ee9008b2355fd5ec36783488b5ec.tar.gz
SCons-5f5fdeebdae3ee9008b2355fd5ec36783488b5ec.tar.bz2
Fix small inefficiency in jobs dispatching
-rw-r--r--src/engine/SCons/Job.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/SCons/Job.py b/src/engine/SCons/Job.py
index 594045c..515f7be 100644
--- a/src/engine/SCons/Job.py
+++ b/src/engine/SCons/Job.py
@@ -243,7 +243,7 @@ else:
while 1:
task = self.requestQueue.get()
- if not task:
+ if task is None:
# The "None" value is used as a sentinel by
# ThreadPool.cleanup(). This indicates that there
# are no more tasks, so we should quit.