diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-05-28 20:27:05 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-05-28 20:27:05 (GMT) |
commit | 4b86a88ab434775623796e0d799429015707445b (patch) | |
tree | 5408adae98e1fb13518271c77e6b77103eff4efe /src/engine | |
parent | ac95931bb40d1b2f53fb017a1fc81e8fe71b111d (diff) | |
download | SCons-4b86a88ab434775623796e0d799429015707445b.zip SCons-4b86a88ab434775623796e0d799429015707445b.tar.gz SCons-4b86a88ab434775623796e0d799429015707445b.tar.bz2 |
fix PY3 logic, and some PEP8 fixes
Diffstat (limited to 'src/engine')
-rw-r--r-- | src/engine/SCons/Util.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/engine/SCons/Util.py b/src/engine/SCons/Util.py index 31213e1..4d0df22 100644 --- a/src/engine/SCons/Util.py +++ b/src/engine/SCons/Util.py @@ -34,7 +34,7 @@ import types import codecs import pprint -PY3 = sys.version[0] == 3 +PY3 = sys.version_info[0] == 3 try: from UserDict import UserDict @@ -266,9 +266,8 @@ def render_tree(root, child_func, prune=0, margin=[0], visited=None): visited[rname] = 1 for i in range(len(children)): - margin.append(i<len(children)-1) - retval = retval + render_tree(children[i], child_func, prune, margin, visited -) + margin.append(i < len(children)-1) + retval = retval + render_tree(children[i], child_func, prune, margin, visited) margin.pop() return retval |