Mercurial > hg > graal-jvmci-8
comparison mxtool/mx.py @ 17248:03826360967b
fix pylint issues
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 29 Sep 2014 14:14:01 +0200 |
parents | 86d9e456ef98 |
children | eff18e262a13 |
comparison
equal
deleted
inserted
replaced
17247:eed077c367d3 | 17248:03826360967b |
---|---|
283 """ | 283 """ |
284 Add the transitive set of dependencies for this project, including | 284 Add the transitive set of dependencies for this project, including |
285 libraries if 'includeLibs' is true, to the 'deps' list. | 285 libraries if 'includeLibs' is true, to the 'deps' list. |
286 """ | 286 """ |
287 return self._all_deps_helper(deps, [], includeLibs, includeSelf, includeJreLibs, includeAnnotationProcessors) | 287 return self._all_deps_helper(deps, [], includeLibs, includeSelf, includeJreLibs, includeAnnotationProcessors) |
288 | 288 |
289 def _all_deps_helper(self, deps, dependants, includeLibs, includeSelf=True, includeJreLibs=False, includeAnnotationProcessors=False): | 289 def _all_deps_helper(self, deps, dependants, includeLibs, includeSelf=True, includeJreLibs=False, includeAnnotationProcessors=False): |
290 if self in dependants: | 290 if self in dependants: |
291 abort(str(self) + 'Project dependency cycle found:\n ' + | 291 abort(str(self) + 'Project dependency cycle found:\n ' + |
292 '\n |\n V\n '.join(map(str, dependants[dependants.index(self):])) + | 292 '\n |\n V\n '.join(map(str, dependants[dependants.index(self):])) + |
293 '\n |\n V\n ' + self.name) | 293 '\n |\n V\n ' + self.name) |
300 assert name != self.name | 300 assert name != self.name |
301 dep = dependency(name) | 301 dep = dependency(name) |
302 if not dep in deps: | 302 if not dep in deps: |
303 if dep.isProject(): | 303 if dep.isProject(): |
304 dep._all_deps_helper(deps, dependants + [self], includeLibs=includeLibs, includeJreLibs=includeJreLibs, includeAnnotationProcessors=includeAnnotationProcessors) | 304 dep._all_deps_helper(deps, dependants + [self], includeLibs=includeLibs, includeJreLibs=includeJreLibs, includeAnnotationProcessors=includeAnnotationProcessors) |
305 elif (dep.isProject or (dep.isLibrary() and includeLibs) or (dep.isJreLibrary() and includeJreLibs)): | 305 elif dep.isProject or (dep.isLibrary() and includeLibs) or (dep.isJreLibrary() and includeJreLibs): |
306 dep.all_deps(deps, includeLibs=includeLibs, includeJreLibs=includeJreLibs, includeAnnotationProcessors=includeAnnotationProcessors) | 306 dep.all_deps(deps, includeLibs=includeLibs, includeJreLibs=includeJreLibs, includeAnnotationProcessors=includeAnnotationProcessors) |
307 if not self in deps and includeSelf: | 307 if not self in deps and includeSelf: |
308 deps.append(self) | 308 deps.append(self) |
309 return deps | 309 return deps |
310 | 310 |