summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-03-12 23:04:29 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2017-03-12 23:04:29 (GMT)
commit63da1b9c6083285e5c4d92126ad2e173d34cef6b (patch)
treecf3390d422373cf192b9fbcb13e943aac834c654
parent77640a33ca2963d88320208895a3de193712566b (diff)
downloadSCons-63da1b9c6083285e5c4d92126ad2e173d34cef6b.zip
SCons-63da1b9c6083285e5c4d92126ad2e173d34cef6b.tar.gz
SCons-63da1b9c6083285e5c4d92126ad2e173d34cef6b.tar.bz2
no unicode in py3, u() works in py2
-rw-r--r--src/engine/SCons/Util.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/engine/SCons/Util.py b/src/engine/SCons/Util.py
index 018a776..9d125ae 100644
--- a/src/engine/SCons/Util.py
+++ b/src/engine/SCons/Util.py
@@ -271,6 +271,7 @@ def render_tree(root, child_func, prune=0, margin=[0], visited=None):
IDX = lambda N: N and 1 or 0
+
def print_tree(root, child_func, prune=0, showtags=0, margin=[0], visited=None):
"""
Print a tree of nodes. This is like render_tree, except it prints
@@ -307,7 +308,7 @@ def print_tree(root, child_func, prune=0, showtags=0, margin=[0], visited=None):
' N = no clean\n' +
' H = no cache\n' +
'\n')
- sys.stdout.write(unicode(legend))
+ sys.stdout.write(u(legend))
tags = ['[']
tags.append(' E'[IDX(root.exists())])