summaryrefslogtreecommitdiffstats
path: root/src/script
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-02-28 20:07:51 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2017-02-28 20:07:51 (GMT)
commit9dc001124dc72907556139a3b1f61148d1e539cf (patch)
treee96c0e36e7f30ab0fe5884111f313e587327f94c /src/script
parent8814bdd192c273ad9ee87fba6cf9be360335b6d5 (diff)
downloadSCons-9dc001124dc72907556139a3b1f61148d1e539cf.zip
SCons-9dc001124dc72907556139a3b1f61148d1e539cf.tar.gz
SCons-9dc001124dc72907556139a3b1f61148d1e539cf.tar.bz2
fix float formatting and change writting output from binary to non binary file for py2/3
Diffstat (limited to 'src/script')
-rw-r--r--src/script/scons-time.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/script/scons-time.py b/src/script/scons-time.py
index edb9dad..9faf045 100644
--- a/src/script/scons-time.py
+++ b/src/script/scons-time.py
@@ -102,7 +102,7 @@ class Line(object):
def print_label(self, inx, x, y):
if self.label:
- print('set label %s "%s" at %s,%s right' % (inx, self.label, x, y))
+ print('set label %s "%s" at %0.1f,%0.1f right' % (inx, self.label, x, y))
def plot_string(self):
if self.title:
@@ -459,7 +459,9 @@ class SConsTimer(object):
output = os.popen(command).read()
if self.verbose:
sys.stdout.write(output)
- open(log, 'wb').write(output)
+ # TODO: Figure out
+ # Not sure we need to write binary here
+ open(log, 'w').write(output)
#