Mercurial > hg > truffle
comparison mxtool/mx.py @ 15462:05d3f069cff2
fixed pylint warning
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 02 May 2014 00:17:40 +0200 |
parents | 7d24ff89dc7d |
children | d0e3f6963ed7 |
comparison
equal
deleted
inserted
replaced
15461:f73fc9309f12 | 15462:05d3f069cff2 |
---|---|
2127 return task._d | 2127 return task._d |
2128 | 2128 |
2129 def sortWorklist(tasks): | 2129 def sortWorklist(tasks): |
2130 for t in tasks: | 2130 for t in tasks: |
2131 t._d = None | 2131 t._d = None |
2132 return sorted(tasks, lambda x, y : remainingDepsDepth(x) - remainingDepsDepth(y)) | 2132 return sorted(tasks, lambda x, y: remainingDepsDepth(x) - remainingDepsDepth(y)) |
2133 | 2133 |
2134 import multiprocessing | 2134 import multiprocessing |
2135 cpus = multiprocessing.cpu_count() | 2135 cpus = multiprocessing.cpu_count() |
2136 worklist = sortWorklist(tasks.values()) | 2136 worklist = sortWorklist(tasks.values()) |
2137 active = [] | 2137 active = [] |