summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba/nothreads.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildtools/wafsamba/nothreads.py')
-rw-r--r--buildtools/wafsamba/nothreads.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/buildtools/wafsamba/nothreads.py b/buildtools/wafsamba/nothreads.py
index 90babf4a28..075dcd326b 100644
--- a/buildtools/wafsamba/nothreads.py
+++ b/buildtools/wafsamba/nothreads.py
@@ -132,8 +132,10 @@ class Parallel(object):
self.frozen = []
elif not self.count:
(jobs, tmp) = self.manager.get_next_set()
- if jobs != None: self.maxjobs = jobs
- if tmp: self.outstanding += tmp
+ if jobs is not None:
+ self.maxjobs = jobs
+ if tmp:
+ self.outstanding += tmp
break
def get_out(self):