diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-02-28 12:07:51 -0800 |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-02-28 12:07:51 -0800 |
commit | 4c8707e98753e384ece038cf14d19bab6b728117 (patch) | |
tree | e96c0e36e7f30ab0fe5884111f313e587327f94c /src/script | |
parent | 2917c08a310d1759b549faba9201bb0e91ff1c77 (diff) | |
download | scons-4c8707e98753e384ece038cf14d19bab6b728117.tar.gz |
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.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/script/scons-time.py b/src/script/scons-time.py index edb9dad9..9faf0453 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) # |