From 9dc001124dc72907556139a3b1f61148d1e539cf Mon Sep 17 00:00:00 2001 From: William Deegan Date: Tue, 28 Feb 2017 12:07:51 -0800 Subject: fix float formatting and change writting output from binary to non binary file for py2/3 --- src/script/scons-time.py | 6 ++++-- 1 file 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) # -- cgit v0.12