# HG changeset patch # User Doug Simon # Date 1411992841 -7200 # Node ID 03826360967bc1237fd77861077fead10d1f6eea # Parent eed077c367d3af9e8feb93f6aa2982d61c72a396 fix pylint issues diff -r eed077c367d3 -r 03826360967b mxtool/mx.py --- a/mxtool/mx.py Mon Sep 29 13:59:41 2014 +0200 +++ b/mxtool/mx.py Mon Sep 29 14:14:01 2014 +0200 @@ -285,7 +285,7 @@ libraries if 'includeLibs' is true, to the 'deps' list. """ return self._all_deps_helper(deps, [], includeLibs, includeSelf, includeJreLibs, includeAnnotationProcessors) - + def _all_deps_helper(self, deps, dependants, includeLibs, includeSelf=True, includeJreLibs=False, includeAnnotationProcessors=False): if self in dependants: abort(str(self) + 'Project dependency cycle found:\n ' + @@ -302,7 +302,7 @@ if not dep in deps: if dep.isProject(): dep._all_deps_helper(deps, dependants + [self], includeLibs=includeLibs, includeJreLibs=includeJreLibs, includeAnnotationProcessors=includeAnnotationProcessors) - elif (dep.isProject or (dep.isLibrary() and includeLibs) or (dep.isJreLibrary() and includeJreLibs)): + elif dep.isProject or (dep.isLibrary() and includeLibs) or (dep.isJreLibrary() and includeJreLibs): dep.all_deps(deps, includeLibs=includeLibs, includeJreLibs=includeJreLibs, includeAnnotationProcessors=includeAnnotationProcessors) if not self in deps and includeSelf: deps.append(self)