summaryrefslogtreecommitdiffstats
path: root/src/engine
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-05-28 20:27:05 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2017-05-28 20:27:05 (GMT)
commit4b86a88ab434775623796e0d799429015707445b (patch)
tree5408adae98e1fb13518271c77e6b77103eff4efe /src/engine
parentac95931bb40d1b2f53fb017a1fc81e8fe71b111d (diff)
downloadSCons-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.py7
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